Skip to content

Commit

Permalink
build: use husky instead of ghooks
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Dec 20, 2024
1 parent d9f1dd1 commit dba5c39
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 152 deletions.
1 change: 1 addition & 0 deletions ui/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cd ui && npx lint-staged
158 changes: 17 additions & 141 deletions ui/package-lock.json

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

18 changes: 7 additions & 11 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"lint": "eslint --fix",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test-storybook": "test-storybook"
"test-storybook": "test-storybook",
"prepare": "cd .. && husky ui/.husky && rm -f .git/hooks/*"
},
"dependencies": {
"@js-joda/core": "^5.6.3",
Expand Down Expand Up @@ -93,8 +94,8 @@
"eslint": "^9.17.0",
"eslint-plugin-storybook": "^0.11.1",
"eslint-plugin-vue": "^9.32.0",
"ghooks": "^2.0.4",
"globals": "^15.14.0",
"husky": "^9.1.7",
"jsdom": "^25.0.1",
"lint-staged": "^15.2.11",
"monaco-editor": "^0.52.2",
Expand All @@ -110,12 +111,12 @@
"vitest": "^2.1.8"
},
"optionalDependencies": {
"@rollup/rollup-darwin-arm64": "^4.28.1",
"@rollup/rollup-darwin-x64": "^4.28.1",
"@rollup/rollup-linux-x64-gnu": "^4.28.1",
"@esbuild/darwin-arm64": "^0.24.0",
"@esbuild/darwin-x64": "^0.24.0",
"@esbuild/linux-x64": "^0.24.0"
"@esbuild/linux-x64": "^0.24.0",
"@rollup/rollup-darwin-arm64": "^4.28.1",
"@rollup/rollup-darwin-x64": "^4.28.1",
"@rollup/rollup-linux-x64-gnu": "^4.28.1"
},
"overrides": {
"bootstrap": {
Expand All @@ -124,10 +125,5 @@
},
"lint-staged": {
"**/*.{js,mjs,cjs,ts,vue}": "eslint --fix"
},
"config": {
"ghooks": {
"pre-commit": "cd ui && npx lint-staged"
}
}
}

0 comments on commit dba5c39

Please sign in to comment.