@polygontech/cz-convention
v2.1.1
Published
Commitizen adapter following https://github.com/ShafiqIslam/dotfiles/blob/master/git/.gitmessage.
Readme
cz-convention
forked from ngryman/cz-emoji to suit my taste.
Single Line Installation
Run the following to install/update this tool:
curl -fsSL https://raw.githubusercontent.com/ShafiqIslam/cz-convention/main/install.sh | bashManual Installation
Install commitizen
npm install -g commitizenInstall this adapter
Global Level (to use on any project)
npm install -g @polygontech/cz-conventionThen, Reference it:
echo '{ "path": "@polygontech/cz-convention" }' > ~/.czrcOr, Project Level (to use on only that project)
npm install @polygontech/cz-conventionThen, Reference it in your package.json of your project
...
"config": {
"commitizen": {
"path": "node_modules/@polygontech/cz-convention/"
}
}
...Usage
Traditionally,
# for minimal version:
git cz
# or the full version
git cz --fullWith husky, in your runcom .huskyrc or .huskyrc.js:
{
"hooks": {
...
"prepare-commit-msg": "exec < /dev/tty && git cz --hook",
...
}
}