Skip to content

Commit 22b14d2

Browse files
committed
add fileChangeHooks
1 parent 9b96f8d commit 22b14d2

File tree

7 files changed

+73
-47
lines changed

7 files changed

+73
-47
lines changed

starter-templates/chrome-extension/codebuff.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
"name": "dev",
66
"command": "npm run dev",
77
"enabled": true,
8-
"stdoutFile": "logs/dev.log",
9-
"stderrFile": "logs/dev.log"
8+
"stdoutFile": "logs/dev.log"
9+
}
10+
],
11+
"fileChangeHooks": [
12+
{
13+
"name": "lint",
14+
"command": "npm run lint -- --fix",
15+
"enabled": true
1016
},
1117
{
1218
"name": "typecheck",
13-
"command": "npm run typecheck -- --watch",
14-
"enabled": true,
15-
"stdoutFile": "logs/typecheck.log",
16-
"stderrFile": "logs/typecheck.log"
19+
"command": "npm run typecheck",
20+
"enabled": true
1721
}
1822
]
19-
}
23+
}
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
2-
"description": "Real-time chat application with Convex backend and Next.js frontend",
2+
"description": "Template configuration for this project. See https://www.codebuff.com/config for all options.",
33
"startupProcesses": [
44
{
55
"name": "dev",
66
"command": "npm run dev",
77
"enabled": true,
8-
"stdoutFile": "logs/dev.log",
9-
"stderrFile": "logs/dev.log"
10-
},
8+
"stdoutFile": "logs/dev.log"
9+
}
10+
],
11+
"fileChangeHooks": [
1112
{
1213
"name": "typecheck",
13-
"command": "npm run typecheck -- --watch",
14-
"enabled": true,
15-
"stdoutFile": "logs/typecheck.log",
16-
"stderrFile": "logs/typecheck.log"
14+
"command": "npm run typecheck",
15+
"enabled": true
1716
}
1817
]
19-
}
18+
}

starter-templates/nextjs/codebuff.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
"name": "dev",
66
"command": "npm run dev",
77
"enabled": true,
8-
"stdoutFile": "logs/dev.log",
9-
"stderrFile": "logs/dev.log"
8+
"stdoutFile": "logs/dev.log"
9+
}
10+
],
11+
"fileChangeHooks": [
12+
{
13+
"name": "lint",
14+
"command": "npm run lint -- --fix",
15+
"enabled": true
1016
},
1117
{
1218
"name": "typecheck",
13-
"command": "npm run typecheck -- --watch",
14-
"enabled": true,
15-
"stdoutFile": "logs/typecheck.log",
16-
"stderrFile": "logs/typecheck.log"
19+
"command": "npm run typecheck",
20+
"enabled": true
1721
}
1822
]
19-
}
23+
}

starter-templates/node-cli/codebuff.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
"name": "dev",
66
"command": "npm run dev",
77
"enabled": true,
8-
"stdoutFile": "logs/dev.log",
9-
"stderrFile": "logs/dev.log"
10-
},
8+
"stdoutFile": "logs/dev.log"
9+
}
10+
],
11+
"fileChangeHooks": [
1112
{
1213
"name": "typecheck",
13-
"command": "npm run typecheck -- --watch",
14-
"enabled": true,
15-
"stdoutFile": "logs/typecheck.log",
16-
"stderrFile": "logs/typecheck.log"
14+
"command": "npm run typecheck",
15+
"enabled": true
1716
}
1817
]
19-
}
18+
}
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
22
"description": "Template configuration for this project. See https://www.codebuff.com/config for all options.",
3-
"startupProcesses": []
4-
}
3+
"startupProcesses": [],
4+
"fileChangeHooks": [
5+
{
6+
"name": "lint",
7+
"command": "python3 -m flake8 .",
8+
"enabled": true
9+
},
10+
{
11+
"name": "test",
12+
"command": "python3 -m unittest discover -s tests",
13+
"enabled": true
14+
}
15+
]
16+
}

starter-templates/remix/codebuff.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
"name": "dev",
66
"command": "npm run dev",
77
"enabled": true,
8-
"stdoutFile": "logs/dev.log",
9-
"stderrFile": "logs/dev.log"
8+
"stdoutFile": "logs/dev.log"
9+
}
10+
],
11+
"fileChangeHooks": [
12+
{
13+
"name": "lint",
14+
"command": "npm run lint -- --fix",
15+
"enabled": true
1016
},
1117
{
1218
"name": "typecheck",
13-
"command": "npm run typecheck -- --watch",
14-
"enabled": true,
15-
"stdoutFile": "logs/typecheck.log",
16-
"stderrFile": "logs/typecheck.log"
19+
"command": "npm run typecheck",
20+
"enabled": true
1721
}
1822
]
19-
}
23+
}

starter-templates/vite/codebuff.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
"name": "dev",
66
"command": "npm run dev",
77
"enabled": true,
8-
"stdoutFile": "logs/dev.log",
9-
"stderrFile": "logs/dev.log"
8+
"stdoutFile": "logs/dev.log"
9+
}
10+
],
11+
"fileChangeHooks": [
12+
{
13+
"name": "lint",
14+
"command": "npm run lint -- --fix",
15+
"enabled": true
1016
},
1117
{
1218
"name": "typecheck",
13-
"command": "npm run typecheck -- --watch",
14-
"enabled": true,
15-
"stdoutFile": "logs/typecheck.log",
16-
"stderrFile": "logs/typecheck.log"
19+
"command": "npm run typecheck",
20+
"enabled": true
1721
}
1822
]
19-
}
23+
}

0 commit comments

Comments
 (0)