Skip to content

Commit

Permalink
[githooks] - Improve build pre-push
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Y committed Jun 2, 2021
1 parent 06bc07b commit 3c04341
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .githooks/pre-push/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$BRANCH" != "main" ]
then
eslint --fix --ext .js,.vue,.ts src
npm run build
rm -rf dist && npm run build
fi

0 comments on commit 3c04341

Please sign in to comment.