Skip to content

Commit 790f64a

Browse files
authored
build: add pre-push test git hooks (#1044)
1 parent 109205b commit 790f64a

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed

lefthook.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pre-push:
2+
parallel: true
3+
commands:
4+
format:
5+
glob: '*.{js,ts,md,yml}'
6+
run: npm run fmt:check
7+
license:
8+
run: npm run test:license
9+
size:
10+
run: npm run test:size
11+
circular:
12+
run: npm run test:circular

package-lock.json

+164
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"get-port": "^7.1.0",
122122
"globby": "^14.0.2",
123123
"jsr": "^0.13.2",
124+
"lefthook": "^1.10.1",
124125
"madge": "^8.0.0",
125126
"minimist": "^1.2.8",
126127
"node-fetch-native": "^1.6.4",

0 commit comments

Comments
 (0)