1.0.6 • Published 4 years ago
cz-conventional-commit v1.0.6
cz-conventional-commit
Part of the commitizen family. Prompts for conventional changelog standard.
How to use
Adaptater for commitizen
To use this package, you need to add this following to your package.json root file :
"config": {
"commitizen": {
"path": "cz-conventional-commit"
},
}
What's change ?
Four types of commit are now available (with emojis ):
- fix
- feat
- style
- refactor
There are now just three steps : type, scope and short description. Example of a commit ruled by this package :
Configuration
package.json
Like commitizen, you specify the configuration of cz-conventional-changelog through the package.json's config.commitizen
key.
{
// ... default values
"config": {
"commitizen": {
"path": "cz-conventional-commit",
"maxHeaderWidth": 100,
"maxLineWidth": 100,
"defaultType": "",
"defaultScope": "",
"defaultSubject": ""
}
}
// ...
}
Environment variables
The following environment varibles can be used to override any default configuration or package.json based configuration.
- CZ_TYPE = defaultType
- CZ_SCOPE = defaultScope
- CZ_SUBJECT = defaultSubject
- CZ_MAX_HEADER_WIDTH = maxHeaderWidth
- CZ_MAX_LINE_WIDTH = maxLineWidth