Skip to content

Commit

Permalink
feat(repo): add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Dec 22, 2024
1 parent a5f6ad1 commit fef514f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "./node_modules/cz-conventional-changelog"
}
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
npx --no -- commitlint --edit $1
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
"copy": "npx cap copy",
"update": "npx cap update",
"sync": "npx cap sync",
"prepare": "husky"
"prepare": "husky",
"pre-commit": "cz"
},
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
},
"dependencies": {
"@capacitor-community/admob": "^6.1.0",
Expand All @@ -33,6 +37,7 @@
"@commitlint/config-conventional": "^19.6.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"core-js": "^3.39.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^9.1.7",
"typescript": "^5.7.2",
"vite": "^5.4.2",
Expand Down

0 comments on commit fef514f

Please sign in to comment.