Skip to content

Commit

Permalink
chore: add pre-push git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kahboom committed Mar 20, 2024
1 parent 0975abd commit c43e60c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run format
npm run test
npm run build
22 changes: 22 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"format:fix": "prettier --write .",
"lint": "next lint",
"generate": "./hack/generate_types.sh",
"prepare": "husky",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --ci"
Expand Down Expand Up @@ -47,6 +48,7 @@
"eslint-config-next": "13.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-testing-library": "^6.2.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "3.2.5",
Expand Down

0 comments on commit c43e60c

Please sign in to comment.