Skip to content

Commit c875cee

Browse files
committed
Merge pull request #29 from igorshubovych/precommit-hooks
Add precommit and prepush hooks: automatic test running
2 parents a84b849 + ef99cd9 commit c875cee

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)