1.2 KiB
Contributing Guide
After forking the repository, run the following commands to get started:
- Ensure you have Node.js and
pnpminstalled. To install pnpm runnpm i -g pnpm. - Install dependencies:
pnpm i - Start the project in development mode:
pnpm start
A few notes:
-
Use
nextbranch for development and as base & target branch for pull requests if possible. -
To link dependency locally e.g. flying-squid add this to
pnpm>overridesof root package.json:"flying-squid": "file:../space-squid",(with some modulespnpm linkalso works) -
It's recommended to use debugger for debugging. VSCode has a great debugger built-in. If debugger is slow, you can use
--no-sourcesflag that would allow browser to speedup .map file parsing. -
Some data are cached between restarts. If you see something doesn't work after upgrading dependencies, try to clear the by simply removing the
distfolder. -
The same folder
distis used for both development and production builds, so be careful when deploying the project. -
Use
start-prodscript to start the project in production mode after runningbuildscript to build the project.