Skip to content

Commit

Permalink
build: add post-checkout githooks with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya committed Oct 20, 2021
1 parent 97550a3 commit 4910271
Show file tree
Hide file tree
Showing 3 changed files with 425 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn install
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"graph-ship-local": "yarn graph-prepare && yarn graph-codegen && yarn graph-deploy-local",
"deploy-and-graph": "yarn deploy && yarn graph-ship-local",
"theme": "yarn workspace @scaffold-eth/react-app theme",
"watch-theme": "yarn workspace @scaffold-eth/react-app watch"
"watch-theme": "yarn workspace @scaffold-eth/react-app watch",
"postinstall": "husky install"
},
"workspaces": {
"packages": [
Expand All @@ -65,5 +66,8 @@
"**/hardhat-ts/**"
]
},
"dependencies": {}
"dependencies": {},
"devDependencies": {
"husky": "^7.0.2"
}
}
Loading

0 comments on commit 4910271

Please sign in to comment.