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 9ba690e commit c86c092
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 204 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cache/
!.github/
.env
config.json
!.husky/

docker/data
!docker/.env
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint-staged
216 changes: 17 additions & 199 deletions package-lock.json

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

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"release": "test $(git rev-parse --abbrev-ref HEAD) = dev && git pull && npm test && 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"
},
"files": [
"lib/*",
Expand All @@ -44,9 +45,6 @@
"eslint --fix"
]
},
"pre-commit": [
"lint-staged"
],
"repository": {
"type": "git",
"url": "https://github.com/gbv/wikidata-jskos"
Expand All @@ -67,9 +65,9 @@
"chai-http": "^5.1.1",
"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",
"yesno": "^0.4.0"
},
"dependencies": {
Expand Down

0 comments on commit c86c092

Please sign in to comment.