File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
apps/cli/src/helpers/project-generation Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " create-better-t-stack " : patch
3
+ ---
4
+
5
+ add workers help message in neext steps box
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export function displayPostInstallInstructions(
23
23
frontend,
24
24
backend,
25
25
dbSetup,
26
+ webDeploy,
26
27
} = config ;
27
28
28
29
const isConvex = backend === "convex" ;
@@ -54,6 +55,8 @@ export function displayPostInstallInstructions(
54
55
const starlightInstructions = addons ?. includes ( "starlight" )
55
56
? getStarlightInstructions ( runCmd )
56
57
: "" ;
58
+ const workersDeployInstructions =
59
+ webDeploy === "workers" ? getWorkersDeployInstructions ( runCmd ) : "" ;
57
60
58
61
const hasWeb = frontend ?. some ( ( f ) =>
59
62
[
@@ -143,6 +146,8 @@ export function displayPostInstallInstructions(
143
146
if ( tauriInstructions ) output += `\n${ tauriInstructions . trim ( ) } \n` ;
144
147
if ( lintingInstructions ) output += `\n${ lintingInstructions . trim ( ) } \n` ;
145
148
if ( pwaInstructions ) output += `\n${ pwaInstructions . trim ( ) } \n` ;
149
+ if ( workersDeployInstructions )
150
+ output += `\n${ workersDeployInstructions . trim ( ) } \n` ;
146
151
if ( starlightInstructions ) output += `\n${ starlightInstructions . trim ( ) } \n` ;
147
152
148
153
if ( noOrmWarning ) output += `\n${ noOrmWarning . trim ( ) } \n` ;
@@ -309,3 +314,7 @@ function getBunWebNativeWarning(): string {
309
314
"WARNING:" ,
310
315
) } 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
311
316
}
317
+
318
+ function getWorkersDeployInstructions ( runCmd ?: string ) : string {
319
+ return `\n${ pc . bold ( "Deploy frontend to Cloudflare Workers:" ) } \n${ pc . cyan ( "•" ) } Deploy: ${ `cd apps/web && ${ runCmd || "bun run" } deploy` } ` ;
320
+ }
Original file line number Diff line number Diff line change 14
14
},
15
15
"apps/cli" : {
16
16
"name" : " create-better-t-stack" ,
17
- "version" : " 2.22.10 " ,
17
+ "version" : " 2.23.0 " ,
18
18
"bin" : {
19
19
"create-better-t-stack" : " dist/index.js" ,
20
20
},
You can’t perform that action at this time.
0 commit comments