Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add husky for git hooks
  • Loading branch information
braican committed Feb 17, 2023
commit 1027c2866684cc469900e22fcf141fc2bfa7239a
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

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.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"license": "ISC",
"scripts": {
"build": "wp-scripts build",
"start": "wp-scripts start"
"start": "wp-scripts start",
"prepare": "husky install"
},
"devDependencies": {
"@babel/core": "^7.20.12",
Expand All @@ -18,6 +19,7 @@
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.1",
"husky": "^8.0.3",
"prettier": "^2.8.3",
"prop-types": "^15.8.1"
}
Expand Down