Skip to content

Commit

Permalink
chore: move pre-commit to npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
devCrossNet committed Sep 25, 2021
1 parent 03cd911 commit bbae635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

vuesion prettier --staged && vuesion parallel "npm run lint" "npm run test"
npm run pre-commit
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -53,7 +53,8 @@
"e2e:ci": "npx start-server-and-test dev http://localhost:3000 e2e",
"ci": "vuesion parallel \"npm run lint\" \"npm run test -- --runInBand\" && npm run e2e:ci",
"postci": "vuesion parallel \"npm run build\" \"npm run storybook:build\"",
"postinstall": "husky install"
"postinstall": "husky install",
"pre-commit": "vuesion prettier --staged && vuesion parallel \"npm run lint\" \"npm run test\""
},
"dependencies": {
"@apollo/client": "3.3.6",
Expand Down

0 comments on commit bbae635

Please sign in to comment.