Thanks for contributing!
- Clone the repo:
git clone https://github.com/strattadb/environment.git. - Install the dependencies:
yarn install.
We use the conventional commit format.
Please see their docs
for more information, or use yarn commit.
Note: when doing a breaking change,
please include BREAKING CHANGE: <the description of the breaking change>.
This lets us do a major bump in the version automatically
thanks to semantic-release.
The CI will reject any PR that doesn't follow the guidelines, but you can test locally to be confident that your PR will pass CI.
- Make sure all tests pass. See the testing section.
- Make sure the TypeScript types are ok:
yarn tsc. - Make sure the linter doesn't complain:
yarn lint. - Your PR is good to go!
- To run tests once:
yarn test. - To run tests in watch mode:
yarn test:watch. - To run tests once collecting coverage:
yarn test:coverage.
Keeping the changelog updated, bumping the version of the package
and publishing to npm are automatically done in the CI pipeline when pushing to master.