Skip to content

Commit

Permalink
Add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitmouton committed Feb 24, 2023
1 parent c4ba7ab commit f1d0046
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
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 lint
25 changes: 24 additions & 1 deletion 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 @@ -10,7 +10,8 @@
"build": "npm-run-all clean lint tsc",
"dev:start": "npm-run-all build start",
"dev": "nodemon --watch src -e ts,ejs --exec npm run dev:start",
"start": "node dist/index"
"start": "node dist/index",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -37,6 +38,7 @@
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.12",
"@types/uuid": "^8.3.0",
"husky": "^8.0.3",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
Expand Down

0 comments on commit f1d0046

Please sign in to comment.