@sheba/cz-convention

Commitizen adapter following https://github.com/ShafiqIslam/dotfiles/blob/master/git/.gitmessage.

Usage no npm install needed!

<script type="module">
  import shebaCzConvention from 'https://cdn.skypack.dev/@sheba/cz-convention';
</script>

README

cz-convention

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

Pre Requisite

Install commitizen

npm install -g commitizen

Install this adapter

npm install @sheba/cz-convention

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

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

Or, globally

npm install -g @sheba/cz-convention

Then, Reference it:

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

Usage

Traditionally,

git cz

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

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