add husky and run jshint as a pre-commit hook
This commit is contained in:
parent
33dd5dec6f
commit
30f1e3b810
|
@ -21,6 +21,7 @@
|
||||||
"grunt-contrib-watch": "~0.5.3",
|
"grunt-contrib-watch": "~0.5.3",
|
||||||
"grunt-mocha": "~0.4.10",
|
"grunt-mocha": "~0.4.10",
|
||||||
"http-proxy": "~1.1.4",
|
"http-proxy": "~1.1.4",
|
||||||
|
"husky": "^0.6.0",
|
||||||
"istanbul": "~0.2.4",
|
"istanbul": "~0.2.4",
|
||||||
"load-grunt-config": "~0.7.0",
|
"load-grunt-config": "~0.7.0",
|
||||||
"lodash": "~2.4.1",
|
"lodash": "~2.4.1",
|
||||||
|
@ -31,7 +32,8 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "grunt test",
|
"test": "grunt test",
|
||||||
"server": "grunt server"
|
"server": "grunt server",
|
||||||
|
"precommit": "grunt jshint"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue