1.5.0 • Published 2 years ago

@sheba/cz-convention v1.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

cz-convention

forked from ngryman/cz-emoji to suit my taste.

Pre Requisite

Install commitizen

npm install -g commitizen

Install this adapter

Global Level (to use on any project)

npm install -g @sheba/cz-convention

Then, Reference it:

echo '{ "path": "@sheba/cz-convention" }' > ~/.czrc

Or, Project Level (to use on only that project)

npm install @sheba/cz-convention

Then, Reference it in your package.json of your project

  ...
  "config": {
    "commitizen": {
      "path": "node_modules/@sheba/cz-convention/"
    }
  }
  ...

Usage

Traditionally,

git cz

With husky, in your runcom .huskyrc or .huskyrc.js:

{
  "hooks": {
    ...
    "prepare-commit-msg": "exec < /dev/tty && git cz --hook",
    ...
  }
}