Skip to content

Commit 6a3700b

Browse files
committed
chore(system): introduce conventional-changelog-lint commitizen adapter
1 parent 6bc1f4f commit 6a3700b

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.conventional-changelog-lintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"rules": {
3+
"scope-enum": [
4+
2,
5+
"always",
6+
[
7+
"rules",
8+
"cli",
9+
"release",
10+
"system"
11+
]
12+
]
13+
}
14+
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
"version": "npm run changelog && git add . && echo \"$(conventional-changelog -p angular)\" > .git/COMMITMSG.tmp",
2424
"postversion": "echo $(git log -1 --pretty=%B HEAD^..HEAD) > .git/RELEASE_VERSION.tmp && git tag -d v$(cat .git/RELEASE_VERSION.tmp) && git commit --amend -m \"chore(release): $(cat .git/RELEASE_VERSION.tmp)\n\n$(cat .git/COMMITMSG.tmp)\" && git tag -a v$(cat .git/RELEASE_VERSION.tmp) -m \"$(cat .git/COMMITMSG.tmp)\""
2525
},
26+
"config": {
27+
"commitizen": {
28+
"path": "cz-conventional-changelog-lint"
29+
}
30+
},
2631
"repository": {
2732
"type": "git",
2833
"url": "git+https://github.com/marionebl/conventional-changelog-lint.git"
@@ -51,10 +56,10 @@
5156
"babel-plugin-add-module-exports": "0.1.2",
5257
"babel-preset-es2015-node4": "2.0.3",
5358
"babel-preset-stage-0": "6.5.0",
54-
"commitizen": "2.5.0",
59+
"commitizen": "2.6.1",
5560
"conventional-changelog-cli": "1.0.0",
5661
"conventional-recommended-bump": "0.1.0",
57-
"cz-conventional-changelog": "1.1.5",
62+
"cz-conventional-changelog-lint": "0.1.2",
5863
"eslint": "2.2.0",
5964
"eslint-config-xo": "0.11.0",
6065
"eslint-plugin-babel": "3.1.0",
@@ -74,10 +79,5 @@
7479
"meow": "3.7.0",
7580
"pos": "0.3.0",
7681
"rc": "1.1.6"
77-
},
78-
"config": {
79-
"commitizen": {
80-
"path": "./node_modules/cz-conventional-changelog"
81-
}
8282
}
8383
}

0 commit comments

Comments
 (0)