Skip to content

Commit

Permalink
feat: Add git hooks by husky
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Feb 1, 2025
1 parent 58b314f commit b5ab441
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm fmt
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# cafeore

## Get Started

1. Run `pnpm i` to install dependencies.
2. Run `pnpm setup` to setup git hooks. (First time only)

## Commands
|command|description|
|--|--|
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"version": "1.0.0",
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
"scripts": {
"setup": "pnpm exec husky init",
"lint": "biome check",
"fmt": "biome check --write",
"common": "pnpm -F \"common\"",
"pos": "pnpm -F \"pos\"",
"mobile": "pnpm -F \"mobile\""
},
"devDependencies": {
"@biomejs/biome": "1.9.4"
"@biomejs/biome": "1.9.4",
"husky": "^8.0.0"
}
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit b5ab441

Please sign in to comment.