Skip to content

Commit ef99cd9

Browse files
committed
Add husky package and register automatic test running on precommit and
prepush
1 parent a84b849 commit ef99cd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"test": "test"
2323
},
2424
"scripts": {
25+
"precommit": "npm test -- --reporter=dot",
26+
"prepush": "npm test -- --reporter=dot",
2527
"start": "NODE_ENV=development node server.js",
2628
"example": "NODE_ENV=development node ./bin/tldr tar",
2729
"test": "mocha test --recursive --reporter=spec",
@@ -47,6 +49,7 @@
4749
"wrench": "~1.5.8"
4850
},
4951
"devDependencies": {
52+
"husky": "^0.10.2",
5053
"mocha": "~1.21.4",
5154
"should": "~4.0.4",
5255
"sinon": "~1.10.3"

0 commit comments

Comments
 (0)