Skip to content

Commit 509ec60

Browse files
Tom KirkpatrickTom Kirkpatrick
Tom Kirkpatrick
authored and
Tom Kirkpatrick
committed
build: add support for validate-commit-msg
1 parent abe60cf commit 509ec60

File tree

2 files changed

+89
-3
lines changed

2 files changed

+89
-3
lines changed

package-lock.json

Lines changed: 78 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"test:watch": "npm run test -- -w",
2020
"pretest": "npm run lint",
2121
"coverage": "nyc report --reporter=text-lcov | coveralls",
22-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
22+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
23+
"commitmsg": "validate-commit-msg"
2324
},
2425
"dependencies": {
2526
"async": "2.5.0",
@@ -29,9 +30,11 @@
2930
"devDependencies": {
3031
"bluebird": "3.5.0",
3132
"chai": "4.0.2",
33+
"conventional-commit-types": "2.1.0",
3234
"coveralls": "2.13.1",
3335
"dirty-chai": "2.0.0",
3436
"eslint-config-fullcube": "3.0.0",
37+
"husky": "0.14.2",
3538
"loopback": "3.8.0",
3639
"loopback-boot": "2.25.0",
3740
"loopback-connector-mongodb": "3.2.0",
@@ -41,6 +44,12 @@
4144
"nyc": "11.0.3",
4245
"semantic-release": "6.3.6",
4346
"sinon": "2.3.6",
44-
"sinon-chai": "2.11.0"
47+
"sinon-chai": "2.11.0",
48+
"validate-commit-msg": "2.12.2"
49+
},
50+
"config": {
51+
"validate-commit-msg": {
52+
"types": "conventional-commit-types"
53+
}
4554
}
4655
}

0 commit comments

Comments
 (0)