Skip to content

Commit d4c702a

Browse files
author
Tom Kirkpatrick
committed
build: validate commit messages conform to conventional changelog standard
1 parent 5e37f8d commit d4c702a

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
@@ -24,7 +24,8 @@
2424
"pretest": "npm run lint",
2525
"test:watch": "npm run test -- -w",
2626
"coverage": "nyc report --reporter=text-lcov | coveralls",
27-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
27+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
28+
"commitmsg": "validate-commit-msg"
2829
},
2930
"license": "MIT",
3031
"dependencies": {
@@ -45,6 +46,7 @@
4546
"dirty-chai": "2.0.0",
4647
"eslint": "4.1.1",
4748
"eslint-config-fullcube": "latest",
49+
"husky": "0.14.1",
4850
"loopback": "3.8.0",
4951
"loopback-boot": "2.25.0",
5052
"loopback-component-explorer": "4.2.0",
@@ -58,7 +60,8 @@
5860
"sinon": "2.3.6",
5961
"sinon-chai": "2.11.0",
6062
"strong-error-handler": "2.1.0",
61-
"supertest": "3.0.0"
63+
"supertest": "3.0.0",
64+
"validate-commit-msg": "2.12.2"
6265
},
6366
"repository": {
6467
"type": "git",
@@ -77,6 +80,9 @@
7780
"ci": "patch",
7881
"chore": "patch",
7982
"revert": "patch"
83+
},
84+
"validate-commit-msg": {
85+
"types": "conventional-commit-types"
8086
}
8187
},
8288
"release": {

0 commit comments

Comments
 (0)