Skip to content

Commit

Permalink
Replace pre-commit with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Dec 17, 2024
1 parent 1eb98d2 commit 19d2532
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 212 deletions.
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-staged
npm test
223 changes: 17 additions & 206 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,14 @@
"release": "test $(git rev-parse --abbrev-ref HEAD) = dev && git pull && npm test && npm run build && npm version $SEMVER && npm run --silent yesno && (git push && git checkout main && git merge dev && git push --follow-tags && git checkout dev) || (git tag -d $(git describe --tags) && git reset --hard HEAD~1)",
"release:patch": "SEMVER=patch npm run release",
"release:minor": "SEMVER=minor npm run release",
"release:major": "SEMVER=major npm run release"
"release:major": "SEMVER=major npm run release",
"prepare": "husky || true"
},
"lint-staged": {
"**/*.{js,vue}": [
"eslint --fix"
]
},
"pre-commit": [
"lint-staged",
"test"
],
"dependencies": {
"vue": "^3.5.13"
},
Expand All @@ -55,9 +52,9 @@
"@vue/compiler-sfc": "^3.5.13",
"eslint": "~9.16",
"eslint-config-gbv": "~2.6",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"mocha": "^11.0.1",
"pre-commit": "^1.2.2",
"vite": "^6.0.3",
"yesno": "^0.4.0"
}
Expand Down

0 comments on commit 19d2532

Please sign in to comment.