@foyer/commitizen-config

1.0.1 • Public • Published

Semantic release Config Foyer

A Commitizen config for Foyer

Installation

Dependent on husky commitizen cz-customizable cz-customizable-ghooks Install cz-customizable-ghooks from path git+https://github.com/pramod-ie/cz-customizable-ghooks.git#master. "cz-customizable-ghooks": "git+https://github.com/pramod-ie/cz-customizable-ghooks.git#master", this is because husky v4 isn't supported by actual cz-customizable-ghooks as it needs minor change but maintainer of this repo isn't active.

npm install @foyer/commitizen-config husky commitizen cz-customizable cz-customizable-ghooks --save-dev

Usage

In package.json:

"scripts": {
  "postinstall:husky": "node node_modules/husky/lib/installer/bin install"
},
"config": {
  "commitizen": {
    "path": "node_modules/cz-customizable"
  },
  "cz-customizable": {
    "config": "node_modules/@foyer/commitizen-config"
  }
}

In husky.config.js:

module.exports = {
  hooks: {
    'commit-msg': 'cz-customizable-ghooks',
    // Any other custom hooks you need
  },
}

Execute: npm run postinstall:husky to init husky hooks

License

MIT

Package Sidebar

Install

npm i @foyer/commitizen-config

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.63 kB

Total Files

5

Last publish

Collaborators

  • foyerlive
  • jturle
  • pramod2work
  • shanehandley