This document describes the workflow we use for the development of Jitar.
To work on Jitar, you need the following tools:
- Node.js 20.x or higher
- npm 10.x or higher
- Visual Studio Code
- Docker (optional) for running the full stack example
Note: Jitar is managed as a monorepo with Lerna. You don't need specific knowledge about Lerna to work on Jitar.
- Clone the repository.
- Run
npm install
to install all dependencies.
- Run
npm run build
to build all packages. - Run
npm run test
to run all tests. - Run
npm run lint
to lint all packages.
- Create a new issue and branch.
- Make your changes.
- Update the documentation if necessary.
- Run
npm run build
to build all packages. - Run
npm run review
to run all tests and linting. - Commit and push the changes.
- Create a pull request.
To do consistent releases, we use the following steps:
- Create a new issue and branch.
- Update the version number for the mono repo in the
package.json
file. - Update the version number for all packages in the packages directory.
- Execute command
npm run changelog
to generate a changelog. - Commit and push the changes.
- Execute command
npm run publish
to publish the packages. - Commit and push the changes.
- Create pull request.
- Merge the pull request.
- Create a new tag with the version number.