Skip to content

Commit

Permalink
feat: add husky pre-commit tool
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Nov 9, 2023
1 parent 376a2a4 commit c41b0df
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules
.loki/report.html
.loki/report.json
/yarn.lock
.package-lock.json



Expand Down
10 changes: 10 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run build:prod
npm run lint:ts
npm run lint:scss
npm run test:unit
npm run storybook:build
npm run test:ui

16 changes: 16 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: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"webpack": "^5.69.1",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
"webpack-dev-server": "^4.7.4",
"husky": "^8.0.0"
},
"dependencies": {
"@reduxjs/toolkit": "^1.8.0",
Expand All @@ -109,4 +110,3 @@
}
}
}

0 comments on commit c41b0df

Please sign in to comment.