1.0.1 • Published 6 years ago
@foyer/commitizen-config v1.0.1
Semantic release Config Foyer
A Commitizen config for Foyer
Installation
Dependent on
husky commitizen cz-customizable cz-customizable-ghooksInstallcz-customizable-ghooksfrom 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-ghooksas 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-devUsage
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