Thanks for that you are interested in contributing to Reduck.
To develop locally:
-
Fork this repository to your own GitHub account and then clone it to your local.
-
Create a new branch:
git checkout -b MY_BRANCH_NAME
-
Install pnpm:
npm install -g pnpm
-
Install the dependencies with:
pnpm run setup
-
Go into package which you want to contribute.
cd ./packages/
-
Start developing.
You can build single package, with:
cd ./packages/*
pnpm build
build all packages, with:
pnpm -r prepare
If you need to clean all node_modules/*
the project for any reason, with
pnpm reset
You need write new test cases for new feature or modify existing test cases for changes.
We wish you write unit tests at PACKAGE_DIR/__test__
. Test syntax is based on jest.
pnpm -r test
To check the formatting of your code:
pnpm lint
We use Modern.js Monorepo Solution to manage version and changelog.
Repository maintainers can publish a new version of all packages to npm.
-
Fetch newest code at branch
main
. -
Install
pnpm run setup
-
Add changeset
pnpm change
-
Bump version
pnpm bump
-
Commit version change. The format of commit message should be
chore: va.b.c
which is the main version of current release.git add . git commit -m "chore: va.b.c"