Skip to content

Commit 9c37de6

Browse files
authoredApr 10, 2020
chore: add check commit message (#411)
1 parent 27822c9 commit 9c37de6

File tree

3 files changed

+1212
-23
lines changed

3 files changed

+1212
-23
lines changed
 

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ before_script:
1010
- npm install -g grunt-cli
1111

1212
script:
13+
- commitlint-travis
1314
- npm run lint
1415
- grunt

‎package-lock.json

+1,197-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+14
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
},
3030
"license": "MIT",
3131
"devDependencies": {
32+
"@commitlint/cli": "^8.3.5",
33+
"@commitlint/travis-cli": "^8.3.5",
34+
"@commitlint/config-conventional": "^8.3.4",
3235
"chai": "^4.2.0",
3336
"eslint": "^6.5.1",
3437
"eslint-config-standard": "^14.1.0",
@@ -44,6 +47,7 @@
4447
"grunt-karma": "^3.0.2",
4548
"grunt-npm": "^0.0.2",
4649
"grunt-simple-mocha": "^0.4.1",
50+
"husky": "^4.2.3",
4751
"ibrik": "^2.0.0",
4852
"karma": "^4.2.0",
4953
"karma-coffee-preprocessor": "1.x || ^0.3.0",
@@ -60,6 +64,16 @@
6064
"engines": {
6165
"node": ">=10.0.0"
6266
},
67+
"commitlint": {
68+
"extends": [
69+
"@commitlint/config-conventional"
70+
]
71+
},
72+
"husky": {
73+
"hooks": {
74+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
75+
}
76+
},
6377
"contributors": [
6478
"dignifiedquire <dignifiedquire@gmail.com>",
6579
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",

0 commit comments

Comments
 (0)
Please sign in to comment.