8000 build: add pre-commit and pre-push hooks by easymikey · Pull Request #1044 · google/zx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

build: add pre-commit and pre-push hooks #1044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from 8000
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lefthook.yml
8000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pre-push:
parallel: true
commands:
format:
glob: '*.{js,ts,md,yml}'
run: npm run fmt:check
license:
run: npm run test:license
size:
run: npm run test:size
circular:
run: npm run test:circular
164 changes: 164 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"get-port": "^7.1.0",
"globby": "^14.0.2",
"jsr": "^0.13.2",
"lefthook": "^1.10.1",
"madge": "^8.0.0",
"minimist": "^1.2.8",
"node-fetch-native": "^1.6.4",
Expand Down
0