Skip to content

Commit

Permalink
chore(deps): add husky and pre-commit hook to lint and build
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideViolante committed Aug 31, 2024
1 parent 667e951 commit 32a7774
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm run lint
npm run build
17 changes: 17 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 @@ -20,7 +20,8 @@
"test:be": "tsc -p server && jest",
"test:becov": "tsc -p server && jest --coverage",
"lint": "ng lint && htmlhint \"client/**/*.html\" && sass-lint \"client/**/*.scss\" -v",
"lint:fix": "ng lint --fix"
"lint:fix": "ng lint --fix",
"prepare": "husky || true"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -62,6 +63,7 @@
"concurrently": "^8.2.2",
"eslint": "^9.9.0",
"htmlhint": "^1.1.4",
"husky": "^9.1.5",
"jasmine-core": "~5.2.0",
"jest": "^29.7.0",
"karma": "~6.4.0",
Expand Down

0 comments on commit 32a7774

Please sign in to comment.