1.5.0 • Published 4 years ago
@sheba/cz-convention v1.5.0
cz-convention
forked from ngryman/cz-emoji to suit my taste.
Pre Requisite
Install commitizen
npm install -g commitizenInstall this adapter
Global Level (to use on any project)
npm install -g @sheba/cz-conventionThen, Reference it:
echo '{ "path": "@sheba/cz-convention" }' > ~/.czrcOr, Project Level (to use on only that project)
npm install @sheba/cz-conventionThen, Reference it in your package.json of your project
...
"config": {
"commitizen": {
"path": "node_modules/@sheba/cz-convention/"
}
}
...Usage
Traditionally,
git czWith husky, in your runcom .huskyrc or .huskyrc.js:
{
"hooks": {
...
"prepare-commit-msg": "exec < /dev/tty && git cz --hook",
...
}
}