🧪 A repo built for trying workflows using husky and commitizen
yarn
After any kinds of modify
git add .
Now you should use
git-cz
to commit your changes.
If your commit messages can't pass the commitlint, you can't continue your commitment.
GUI tool may prompt yarn: command is not found
please save this to ~
.huskyrc
# .huskyrc
export PATH="/usr/local/bin/:$PATH"
yarn add --dev @commitlint/cli @commitlint/config-angular cz-conventional-changelog
module.exports = {
extends: ['@commitlint/config-angular']
};
yarn add --dev husky
yarn husky init
"scripts": {
"commit": "git-cz",
"prepare": "husky install",
"test": "commitlint --edit $1"
},
.husky/commit-msg
yarn test