This project uses a standard Projen setup. The only additions are:
husky
to run the git hooks on committing- Documentation in the
docs
folder powered by Astro and the Starlight theme
Install packages and husky to run the git hooks on committing:
npm install
husky install
cd docs && npm install
Husky runs following command before committing to check if your changed code passes the linter, prettier, tsc, jsii compilation checks and tests:
npm run eslint
npm run default
npm run build
git add .
- Create an issue then indicate that you are working on it by:
- Commenting on the issue you created
- Assigning yourself to the issue
- Create a draft PR
- This is to keep an accurate roadmap and ensure that no one is working on the same thing at the same time.
- Create a fork form of the repository
- Create a branch of the
main
branch with a meaningful name - Make your changes on your branch
- Update the documentation if necessary. Preview your documentation changes by running
cd docs && npm run dev:development
. A local server will be started athttp://localhost:4321/
to preview your changes. - Write tests for your changes
- Push your changes to your branch
- Create a PR from your branch to the
main
branch of the original repository. PR names must follow the Conventional Commits standard Available PR name types:- feat
- fix
- docs
- ci
- chore
- Add a good description of your changes in the PR, and link the issue you are working on.
The documentation site is deployed with Cloudflare Pages. Cloudflare automatically deploys any branch with the prefix
preview-
. Only project admins can create preview-
branches (they are protected).
If you are making many big changes and would like to preview the deployed site, reach out to an admin (comment in the issue) so that they can create a preview branch for you.