-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
46 lines (46 loc) · 1.63 KB
/
Copy pathpackage.json
File metadata and controls
46 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"name": "git-plus",
"private": true,
"type": "module",
"engines": {
"node": ">=22"
},
"packageManager": "pnpm@10.12.2",
"workspaces": [
"frontend",
"db"
],
"scripts": {
"dev": "pnpm dlx concurrently@9.2.1 --kill-others-on-fail --names frontend,go \"pnpm dev:frontend\" \"pnpm dev:go\"",
"dev:frontend": "pnpm --filter ./frontend exec vite dev --host 127.0.0.1 --port 43210 --strictPort",
"dev:go": "CGO_ENABLED=0 FRONTEND_DEV_SERVER=http://127.0.0.1:43210 go run . --data-dir ./tmpdata",
"buf:generate": "buf generate",
"buf:lint": "buf lint",
"build": "pnpm build:frontend && pnpm build:go",
"build:frontend": "pnpm --filter ./frontend build",
"build:go": "mkdir -p dist && CGO_ENABLED=0 go build -tags embed -o ./dist/git-plus .",
"db:generate": "pnpm db:generate:drizzle && pnpm db:generate:schema-sql && pnpm db:generate:sqlc",
"db:generate:drizzle": "pnpm --filter ./db generate",
"db:generate:schema-sql": "pnpm --filter ./db generate:schema-sql",
"db:generate:sqlc": "go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0 generate -f db/sqlc.yaml",
"test": "CGO_ENABLED=0 go test ./... && pnpm --filter ./frontend test",
"lint": "eslint .",
"format": "prettier --write . && eslint --fix . && eslint .",
"check:types": "pnpm --filter ./frontend check:types"
},
"devDependencies": {
"@tanstack/eslint-config": "^0.4.0",
"eslint": "^9.39.4",
"eslint-plugin-react": "^7.37.5",
"lefthook": "^2.1.4",
"prettier": "^3.8.1"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"eslint",
"lefthook",
"playwright"
]
}
}