Commitizen adapter formatting commit messages
$ npm i -D @peak-stone/cz-fbi
const { bootstrap } = require('@peak-stone/commitizen-promise/dist/cli/git-cz')
bootstrap({
cliPath: 'node_modules/@peak-stone/commitizen-promise',
config: {
path: 'node_modules/@peak-stone/cz-fbi',
},
})
- commit types:
- feat: new features
- fix: bug fixes
- chore: maintain
- docs: documentation
- style: formatting, missing semi colons, …
- refactor
- perf: improving performance
- test: adds or modifies tests
- revert: reverting changes
- init: initial commit
package.json
{
"name": "",
"version": "",
...
"cz-fbi": {
"types": [
{
"emoji": "✨",
"description": "Introducing new features",
"name": "feat"
},
...
],
"scopes": ["page", "api", ...]
}
}