@domestika/cz
v1.5.0
Published
Commitizen adapter for packages
Downloads
5
Readme
cz
A commitizen adapter for semantic commits.
It provides
- CLI commit prompt to guide developer on commit messages.
- Enforcement of semantic commits human-readable and machine- parsable.
- Parseable commits are used for releases by
mono
It's highly inspired in cz-customizable
adapter.
Installation/Usage
Use cz types with validate-commit-msg
npm install --save-dev validate-commit-msg
npm install --save-dev @domestika/cz
in package.json
{
"config": {
"validate-commit-msg": {
"types": "@domestika/cz/types"
/* rest of your config here */
}
}
}
Integrating validate-commit-msg with git "commit-msg" hook
We recommend using husky.
npm install husky --save-dev
npm install --save-dev validate-commit-msg
npm install --save-dev @domestika/cz
in package.json
{
"scripts": {
/* ... your own scripts ... */
"commitmsg": "validate-commit-msg"
}
}