You want to help get natr on track? Nice! You are the best! 🥳
First you need to clone the repository somewhere on your local machine and switch to the created project directory.
git clone git@github.com:krieselreihe/natr.git
cd natr
To develop natr you need at least a version 12 or higher of node. You can check this by running:
$ node --version
v12.16.1
Next you need to ensure that you have a pnpm version installed larger than 4 (pnpm is a fast npm/yarn alternative). You can test this by running:
$ pnpm --version
4.12.0
If you do not have pnpm installed or an old version of it, you can install or upgrade by running:
curl -L https://unpkg.com/@pnpm/self-installer | node
To install all the necessary dependencies to develop natr run:
pnpm install
Now you're good to go 🎉
# Run tests
pnpm test
# Show test coverage
pnpm run coverage
# Lint the application
pnpm run lint
To format the code use:
pnpm run format
To check for formatting issues inside the code run:
pnpm run format:check
This repo is is Commitizen-friendly! (read more)
Checkout a new branch, there is no naming convention for branches, only for commits. Add your changes and run pnpx git-cz
to start the commitizen cli to create a proper commit message.
Push the changes with your feature branch and create a "Merge Request" on GitHub.
- Make changes
- Commit those changes with
pnpx git-cz
- Create a new release with
pnpm run release
- Push your release
git push --follow-tags origin main
- Publish:
NPM_CONFIG_OTP=XXXXXX pnpm publish
(replaceXXXXXX
with a valid 2FA token) - Done!
For more information on building a release see https://github.com/conventional-changelog/standard-version