mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add workers help message in next steps box
This commit is contained in:
5
.changeset/honest-rice-roll.md
Normal file
5
.changeset/honest-rice-roll.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"create-better-t-stack": patch
|
||||
---
|
||||
|
||||
add workers help message in neext steps box
|
||||
@@ -23,6 +23,7 @@ export function displayPostInstallInstructions(
|
||||
frontend,
|
||||
backend,
|
||||
dbSetup,
|
||||
webDeploy,
|
||||
} = config;
|
||||
|
||||
const isConvex = backend === "convex";
|
||||
@@ -54,6 +55,8 @@ export function displayPostInstallInstructions(
|
||||
const starlightInstructions = addons?.includes("starlight")
|
||||
? getStarlightInstructions(runCmd)
|
||||
: "";
|
||||
const workersDeployInstructions =
|
||||
webDeploy === "workers" ? getWorkersDeployInstructions(runCmd) : "";
|
||||
|
||||
const hasWeb = frontend?.some((f) =>
|
||||
[
|
||||
@@ -143,6 +146,8 @@ export function displayPostInstallInstructions(
|
||||
if (tauriInstructions) output += `\n${tauriInstructions.trim()}\n`;
|
||||
if (lintingInstructions) output += `\n${lintingInstructions.trim()}\n`;
|
||||
if (pwaInstructions) output += `\n${pwaInstructions.trim()}\n`;
|
||||
if (workersDeployInstructions)
|
||||
output += `\n${workersDeployInstructions.trim()}\n`;
|
||||
if (starlightInstructions) output += `\n${starlightInstructions.trim()}\n`;
|
||||
|
||||
if (noOrmWarning) output += `\n${noOrmWarning.trim()}\n`;
|
||||
@@ -309,3 +314,7 @@ function getBunWebNativeWarning(): string {
|
||||
"WARNING:",
|
||||
)} 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
|
||||
}
|
||||
|
||||
function getWorkersDeployInstructions(runCmd?: string): string {
|
||||
return `\n${pc.bold("Deploy frontend to Cloudflare Workers:")}\n${pc.cyan("•")} Deploy: ${`cd apps/web && ${runCmd || "bun run"} deploy`}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user