Skip to content

Commit

Permalink
Updated package and added husky
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Feb 10, 2024
1 parent 69c9dfe commit af4de4a
Show file tree
Hide file tree
Showing 5 changed files with 3,270 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ cache
script
out
.vscode
yarn.lock
lcov.info
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

yarn prettier
yarn lint
4 changes: 4 additions & 0 deletions .husky/_/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

yarn prettier-check
yarn test
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"prettier": "prettier --write .",
"prettier-check": "prettier --check .",
"test": "forge test",
"uml": "npx sol2uml ./src -o UML.svg"
"uml": "npx sol2uml ./src -o UML.svg",
"postinstall": "husky"
},
"husky": {
"hooks": {
Expand All @@ -35,6 +36,7 @@
},
"devDependencies": {
"coveralls": "3.1.1",
"husky": "9.0.10",
"prettier": "3.2.5",
"prettier-plugin-solidity": "1.3.1",
"sol2uml": "2.5.20",
Expand Down
Loading

0 comments on commit af4de4a

Please sign in to comment.