Skip to content

Commit

Permalink
feat: husky adds pre-push
Browse files Browse the repository at this point in the history
  • Loading branch information
Alireza29675 committed Dec 8, 2021
1 parent cbce477 commit ba8cc83
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run exportnpm run export
6 changes: 6 additions & 0 deletions package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"prepare": "husky install"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -37,5 +38,8 @@
"last 1 safari version"
]
},
"license": "BSD-3-Clause"
"license": "BSD-3-Clause",
"devDependencies": {
"husky": "^7.0.0"
}
}

0 comments on commit ba8cc83

Please sign in to comment.