Skip to content

Commit 06bea8d

Browse files
author
Tom Kirkpatrick
committed
build: validate commit messages conform to conventional changelog standard
1 parent 569e258 commit 06bea8d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"test": "nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js",
3636
"test:watch": "npm run test -- -w",
3737
"coverage": "nyc report --reporter=text-lcov | coveralls",
38-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
38+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
39+
"commitmsg": "validate-commit-msg"
3940
},
4041
"devDependencies": {
4142
"@bubltechnology/customizable-commit-analyzer": "1.0.2-0",
@@ -49,6 +50,7 @@
4950
"eslint-config-fullcube": "latest",
5051
"eslint-plugin-mocha": "4.11.0",
5152
"helmet": "3.6.1",
53+
"husky": "0.14.1",
5254
"loglevel": "1.4.1",
5355
"loopback": "3.8.0",
5456
"loopback-boot": "2.25.0",
@@ -63,7 +65,8 @@
6365
"serve-favicon": "2.4.3",
6466
"sinon": "2.3.5",
6567
"sinon-chai": "2.11.0",
66-
"strong-error-handler": "2.1.0"
68+
"strong-error-handler": "2.1.0",
69+
"validate-commit-msg": "2.12.2"
6770
},
6871
"dependencies": {
6972
"bluebird": "3.5.0",
@@ -84,6 +87,9 @@
8487
"ci": "patch",
8588
"chore": "patch",
8689
"revert": "patch"
90+
},
91+
"validate-commit-msg": {
92+
"types": "conventional-commit-types"
8793
}
8894
},
8995
"release": {

0 commit comments

Comments
 (0)