1.0.0 • Published 5 years ago
@dan-nz/commitlint-config v1.0.0
commitlint-config
This package includes the shareable commitlint configuration used by Digital Arts Network New Zealand.
Installation
npm i --save-dev @commitlint/cli @dan-nz/commitlint-configNote: for monorepos perform these steps at the root of your package.
Usage
Create an commitlint.config.js file with the following contents:
module.exports = {
extends: [
'@dan-nz/commitlint-config'
],
}Install husky
npm i --save-dev huskyAdd a husky hook to package.json
This will be executed whenever a new commit is created.
// package.json
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}Install commitizen prompt
npm i --save-dev commitizen cz-conventional-changelogAdd Commitizen adapter config
// package.json
{
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}Add a script pointing to Commitizen cli
// package.json
{
"scripts": {
"commit": "git-cz"
}
}To start a commit, run npm run commit instead of the usual git commit.
Related
1.0.0
5 years ago
0.9.0
5 years ago
0.8.0
5 years ago
0.7.22
6 years ago
0.7.21
6 years ago
0.7.20
6 years ago
0.7.19
6 years ago
0.7.18
6 years ago
0.7.17
6 years ago
0.7.16
6 years ago
0.7.15
6 years ago
0.7.14
6 years ago
0.7.13
6 years ago
0.7.12
6 years ago
0.7.11
6 years ago
0.7.10
6 years ago
0.7.9
6 years ago
0.7.8
6 years ago
0.7.6
6 years ago
0.7.5
6 years ago
0.7.4
6 years ago