Skip to content

Commit b196fd1

Browse files
committed
ci(local): Add prepush git-hook to run tests
1 parent ab75d18 commit b196fd1

File tree

2 files changed

+138
-10
lines changed

2 files changed

+138
-10
lines changed

package-lock.json

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

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"test": "mocha --compilers js:babel-register",
1313
"test:watch": "npm run test -- --watch",
1414
"prepublishOnly": "npm run clean && npm run build",
15-
"commitmsg": "validate-commit-msg",
16-
"prepush": "npm test",
1715
"semantic-release": "semantic-release",
1816
"travis-deploy-once": "travis-deploy-once"
1917
},
@@ -29,6 +27,7 @@
2927
"babel-preset-es2015": "^6.24.1",
3028
"babel-preset-react": "^6.24.1",
3129
"babel-preset-stage-0": "^6.24.1",
30+
"husky": "^1.1.2",
3231
"mocha": "^3.1.2",
3332
"semantic-release": "^15.10.3",
3433
"travis-deploy-once": "^5.0.9"
@@ -49,5 +48,10 @@
4948
"files": [
5049
"lib",
5150
"README.md"
52-
]
51+
],
52+
"husky": {
53+
"hooks": {
54+
"pre-push": "npm run test"
55+
}
56+
}
5357
}

0 commit comments

Comments
 (0)