chore: add justfile and lefthook for local pre-push checks

This commit is contained in:
2026-04-20 01:06:15 +02:00
parent 4e5bca3c33
commit 63148d7ca1
4 changed files with 89 additions and 0 deletions

25
lefthook.yml Normal file
View File

@@ -0,0 +1,25 @@
{
"$schema": "https://json.schemastore.org/lefthook.json",
"pre-push": {
"commands": {
"go-fmt": {
cmd: "go fmt ./..."
},
"go-vet": {
cmd: "go vet ./..."
},
"go-test": {
cmd: "go test ./..."
},
"ts-typecheck": {
cmd: "bunx tsc -p tsconfig.json --noEmit"
},
"build-assets": {
cmd: "bun run build:assets"
},
"go-build": {
cmd: "go build -o server ./cmd/server"
}
}
}
}