Skip to content

Commit 418a042

Browse files
committed
chore: run test on pre push
1 parent b91e1cd commit 418a042

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm test

package-lock.json

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test:coverage": "jest --coverage --coverageDirectory=\"coverage\"",
1414
"dev": "webpack --watch --mode development",
1515
"lint": "eslint . --ext .ts",
16-
"docs": "typedoc --out doc --entryPointStrategy expand ./src"
16+
"docs": "typedoc --out doc --entryPointStrategy expand ./src",
17+
"prepare": "husky install"
1718
},
1819
"keywords": [],
1920
"author": {
@@ -53,7 +54,8 @@
5354
"typescript": "^4.4.4",
5455
"webpack": "^5.65.0",
5556
"webpack-cli": "^4.9.1",
56-
"webpack-dev-server": "^4.7.3"
57+
"webpack-dev-server": "^4.7.3",
58+
"husky": "^8.0.0"
5759
},
5860
"dependencies": {
5961
"loader-utils": "^3.2.0",

0 commit comments

Comments
 (0)