forked from CodebuffAI/codebuff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodebuff.json
More file actions
80 lines (80 loc) · 2.36 KB
/
codebuff.json
File metadata and controls
80 lines (80 loc) · 2.36 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"description": "Template configuration for this project. See https://www.codebuff.com/config for all options.",
"startupProcesses": [
{
"name": "drizzle",
"command": "bun start-studio",
"stdoutFile": "debug/drizzle.log"
},
{
"name": "web-server",
"command": "bun start-web",
"stdoutFile": "debug/web.log"
}
],
"fileChangeHooks": [
{
"name": "backend-unit-tests",
"command": "../scripts/run-tests-summary",
"cwd": "backend",
"filePattern": "backend/**/*.ts"
},
{
"name": "backend-typecheck",
"command": "bun run typecheck",
"cwd": "backend",
"filePattern": "backend/**/*.ts"
},
{
"name": "npm-app-unit-tests",
"command": "../scripts/run-tests-summary",
"cwd": "npm-app",
"filePattern": "npm-app/**/*.ts"
},
{
"name": "npm-typecheck",
"command": "bun run typecheck",
"cwd": "npm-app",
"filePattern": "npm-app/**/*.ts"
},
{
"name": "web-typecheck",
"command": "bun run typecheck",
"cwd": "web",
"filePattern": "web/**/*.ts*"
},
{
"name": "common-unit-tests",
"command": "../scripts/run-tests-summary",
"cwd": "common",
"filePattern": "common/**/*.ts"
},
{
"name": "common-typecheck",
"command": "bun run typecheck",
"cwd": "common",
"filePattern": "common/**/*.ts"
},
{
"name": "prettier-format",
"command": "set -o pipefail && CHANGED=\"$(git diff --name-only --diff-filter=ACMR | grep -E '\\.(ts|tsx|json|md)$' | xargs -r npx prettier --list-different || true)\"; [ -n \"$CHANGED\" ] && echo \"$CHANGED\" | xargs -r npx prettier --write --log-level=warn && printf '%s\\n' \"$CHANGED\" || true",
"filePattern": "**/*.{ts,tsx,json,md}"
},
{
"name": "regenerate-tool-definitions",
"command": "bun run generate-tool-definitions",
"filePattern": "common/src/tools/{params/tool/*.ts,list.ts}"
},
{
"name": "agents-typecheck",
"command": "bun run typecheck",
"cwd": ".agents",
"filePattern": ".agents/**/*.ts"
},
{
"name": "eslint-fix-imports",
"command": "set -o pipefail && git diff --name-only --diff-filter=ACMR | grep -E '\\.(ts|tsx|js|jsx)$' | xargs -r npx eslint --fix --quiet",
"filePattern": "**/*.{ts,tsx,js,jsx}"
}
]
}