🔮 Projects - Commitizen base
npm install @crystal-ball/commitizen-baseThis package contains an adapter for using [Commitizen][] with 🔮 Projects.
Standardized commit messages are constructed using an interactive prompt with
options for long descriptions, emojis, breaking change notes and release notes.
---
Commits generated with this package will automatically follow the [ESLint commit
fomat][eslint-commits].
_1. Install_
``sh`
npm i -D @crystal-ball/commitizen-base husky
_2. Configure package.json_
`json``
{
"config": {
"commitizen": {
"path": "@crystal-ball/commitizen-base"
}
},
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && git cz --hook"
}
}
}
[commitizen]:https://commitizen.github.io/cz-cli/
[eslint-commits]:https://eslint.org/docs/developer-guide/contributing/pull-requests#step-2-make-your-changes