title | href | description |
---|---|---|
Contributing |
/documentation/contributing |
Learn on how to contribute to inlang. |
Inlang is setup as monorepo with NPM workspaces and turborepo.
Furthermore, the repository makes use of Dev Containers ensuring that everyone works in the same environment. If you don't use dev containers, we won't be able to support dev related setup problems.
0.1. Install Docker 0.2. Install the VSCode DevContainers Extension
- Open the repository in VSCode.
- Open the repository in a dev container via
CMD + Shift + P
and search forOpen in container
. Make sure to allocate enough memory in your Docker setup (>4GB). npm install
to install dependenciesnpm run dev
to run the development environment.npm run test
to run the tests.npm run build
to compile a production build.
There is a problem with Hot Module Reloading (HMR) within the Windows file system. To fix this problem, you can use the Linux subsystem:
- Start the dev container first
- Navigate to the Linux subsystem with
cd $HOME
&cd /mnt
. - Clone the inlang repo into the Linux subsystem
- Navigate to the inlang repo
- Run
npm install
&npm run dev
Note:
Make sure that the user has the right to edit files.
For Docker Desktop, the user should be node
.
- Run
npm run dev
. - Several debug launch configs can be found in the VSCode sidemenu.