@foyer/commitizen-config
v1.0.1
Published
Base commitizen config for @foyer
Downloads
7
Readme
Semantic release Config Foyer
A Commitizen config for Foyer
Installation
Dependent on
husky commitizen cz-customizable cz-customizable-ghooks
Installcz-customizable-ghooks
from pathgit+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 actualcz-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