Skip to content

Commit befd125

Browse files
committed
add git hook to update demo page
1 parent 69aa70a commit befd125

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"@types/jest": "^25.1.4",
22+
"husky": "^4.3.8",
2223
"jest": "^25.1.0",
2324
"jest-canvas-mock": "^2.2.0",
2425
"move-file-cli": "^2.0.0",
@@ -62,5 +63,11 @@
6263
"setupFiles": [
6364
"jest-canvas-mock"
6465
]
66+
},
67+
"husky": {
68+
"hooks": {
69+
"pre-commit": "yarn run test",
70+
"pre-push": "yarn run demo:build"
71+
}
6572
}
6673
}

0 commit comments

Comments
 (0)