Skip to content

Commit 359c480

Browse files
authored
Introduce git hooks (#429)
2 parents 58b314f + b5ab441 commit 359c480

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
pnpm fmt

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# cafeore
22

3+
## Get Started
4+
5+
1. Run `pnpm i` to install dependencies.
6+
2. Run `pnpm setup` to setup git hooks. (First time only)
7+
38
## Commands
49
|command|description|
510
|--|--|

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"version": "1.0.0",
44
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
55
"scripts": {
6+
"setup": "pnpm exec husky init",
67
"lint": "biome check",
78
"fmt": "biome check --write",
89
"common": "pnpm -F \"common\"",
910
"pos": "pnpm -F \"pos\"",
1011
"mobile": "pnpm -F \"mobile\""
1112
},
1213
"devDependencies": {
13-
"@biomejs/biome": "1.9.4"
14+
"@biomejs/biome": "1.9.4",
15+
"husky": "^8.0.0"
1416
}
1517
}

pnpm-lock.yaml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)