This package has been depreated because:
- commitizen now supports
git commitworkflow by using git hooks and the--hookcommand-line option. - commitizen also allows you to configure an adapter to use in
package.json,.czrcor.cz.json.
commitizen CLI and the adapters as local dependencies.
The commitizen adapter that is used when you commit your changes is determined based on the following steps.
-
If
config.commitizen.pathexists in yourpackage.json, the config and the adapter are used. -
If
config.cz-customizable.configexists in yourpackage.json, the config and cz-customizable are used. -
If
.cz-config.jsexists in the current working directory or the ancestors, the.cz-config.jsand cz-customizable are used. -
Otherwise cz-conventional-changelog is used.
Install @whizark/cz-cli as a local dependency.
npm install @whizark/cz-cli --save-devAdd scripts.commit to your package.json.
{
"scripts": {
"commit": "git cz"
}
}When you want to commit your changes, all you need to do is type the following command.
npm run commitAs a shortcut, you might type the following command with npm-quick-run.
nr commitOr you can run git command with npm-run.
npm-run git czIn this case, you need not add scripts.commit into your package.json.