Inlang is set up as monorepo with Nx (with caching some compile process for better dev/build performance).
- Clone/Fork inlang's repository.
- Open the repository folder in Visual Studio Code.
pnpm install
to install dependencies.pnpm fetch-env:public
to fetch necessary environment variables for the production build. (only for external contributor)pnpm dev
to run the development environment.pnpm test
to run the tests.pnpm build
to compile a production build.
To work on Windows, you will need to change the shell, which is used to execute NPM scripts to bash
, before running pnpm dev
. A Git installation usually comes with a bash
binary.
pnpm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
to set the shell tobash
provided by your Git installation
If you get the following error:
Nx failed to execute {runtime: 'env | grep ^PUBLIC_'}. Error: Command failed: env | grep ^PUBLIC_
run pnpm fetch-env:public
to fetch necessary environment variables.
then start your work.
- Run
pnpm dev
. - Several debug launch configs can be found in the VSCode side menu. Select the correct one depending on the subject of your contribution and launch Debug mode.