Skip to content

Commit

Permalink
Add husky (git commit hooks) (#348)
Browse files Browse the repository at this point in the history
* Add husky and script
  • Loading branch information
benjaminpjones authored Nov 29, 2024
1 parent c53b04a commit f4fa6a8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn lint
yarn test
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"start:server": "yarn workspace @ogfcommunity/variants-server run start",
"start:client": "yarn workspace @ogfcommunity/variants-vue-client run start",
"start:shared": "yarn workspace @ogfcommunity/variants-shared run start",
"new-variant": "node ./scripts/create-new-app.js"
"new-variant": "node ./scripts/create-new-app.js",
"postinstall": "husky"
},
"workspaces": {
"packages": [
Expand All @@ -24,5 +25,8 @@
"prettier": {
"trailingComma": "all",
"endOfLine": "lf"
},
"devDependencies": {
"husky": "^9.1.7"
}
}
11 changes: 11 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,8 @@ __metadata:
"@ogfcommunity/variants-monorepo@workspace:.":
version: 0.0.0-use.local
resolution: "@ogfcommunity/variants-monorepo@workspace:."
dependencies:
husky: ^9.1.7
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -4495,6 +4497,15 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^9.1.7":
version: 9.1.7
resolution: "husky@npm:9.1.7"
bin:
husky: bin.js
checksum: c2412753f15695db369634ba70f50f5c0b7e5cb13b673d0826c411ec1bd9ddef08c1dad89ea154f57da2521d2605bd64308af748749b27d08c5f563bcd89975f
languageName: node
linkType: hard

"icon-gen@npm:^4.0.0":
version: 4.0.0
resolution: "icon-gen@npm:4.0.0"
Expand Down

0 comments on commit f4fa6a8

Please sign in to comment.