This is our company commitizen configuration. We uses cz-bespoke to generate a commitizen adapter.
To add commitizen to a repo, do the following:
- Install commitizen globally. (This isn't necessary, but makes using the cli tool easier.)
$ yarn global add commitizen
- Initialize our commitizen adapter in the repo. (This may take a few moments)
$ commitizen init @concierge-auctions/commitizen-config --save-dev
- Add commitizen to devDependencies
$ yarn add --dev commitizen
- Add the following script to
package.json
. This will be used instead ofgit commit
.
"commit": "git-cz",