Skip to content

Commit e8c01e4

Browse files
committedMar 29, 2020
build(build): install husky and commitizen
1 parent 715cd95 commit e8c01e4

File tree

2 files changed

+274
-8
lines changed

2 files changed

+274
-8
lines changed
 

‎package-lock.json

Lines changed: 266 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@
3232
"devDependencies": {
3333
"benchmark": "2.1.4",
3434
"braces": ">=2.3.1",
35+
"commitizen": "^4.0.3",
3536
"cz-conventional-changelog": "^3.1.0",
3637
"eslint": "4.19.1",
3738
"eslint-config-airbnb-base": "^13.1.0",
3839
"eslint-plugin-import": "^2.16.0",
3940
"eslint-plugin-jest": "21.17.0",
4041
"handlebars": ">=4.0.14",
42+
"husky": "^4.2.3",
4143
"jest": "23.6.0",
4244
"js-yaml": ">=3.13.1",
4345
"mem": ">=4.0.0",
@@ -50,5 +52,11 @@
5052
"commitizen": {
5153
"path": "./node_modules/cz-conventional-changelog"
5254
}
55+
},
56+
"husky": {
57+
"hooks": {
58+
"pre-commit": "npm run lint",
59+
"pre-push": "npm test"
60+
}
5361
}
5462
}

0 commit comments

Comments
 (0)
Please sign in to comment.