- Install Node.js. This will also install
npm
, the Node.js package manager. - Install Yarn. This is a package manager for JavaScript.(Optional)
- Install Visual Studio Code (VS Code) or any other IDE of your choice
-
Clone the repository to your local machine
-
Open the project in your IDE and make changes.
- Install dependencies:
npm install
. - Write your code in
src
folder. - Write tests in
__tests__
folder. - Test your code:
npm test
. - Make sure all tests pass. If you are adding a new feature, add tests for it. If you are fixing a bug, add a test that exposes the bug and fails without your fix.
- Install dependencies:
-
Commit and push your changes to main branch
When you are ready to publish your changes to npm registry, follow the steps below:
- Update the version in
package.json
file. Refer to Semantic Versioning for versioning guidelines. - Merge the changes to
release
branch. - Push the changes to
release
branch. This will trigger the release pipeline which will publish the package to npm registry.