Skip to content

Commit

Permalink
Added husky git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
erayhanoglu committed Jun 17, 2022
1 parent 993642f commit d61fc2a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
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 @@ -65,6 +65,7 @@
"dotenv": "^16.0.1",
"eslint": "^8.17.0",
"eslint-config-google": "^0.14.0",
"husky": "^8.0.1",
"jest": "^28.1.1",
"ts-cleanup": "^0.2.4",
"ts-jest": "^28.0.5",
Expand All @@ -89,6 +90,7 @@
"precover": "rimraf coverage",
"cover": "jest --maxWorkers=1 --coverage",
"precitest": "rimraf coverage",
"citest": "jest --coverage --coverageReporters=lcov"
"citest": "jest --coverage --coverageReporters=lcov",
"prepare": "husky install"
}
}

0 comments on commit d61fc2a

Please sign in to comment.