From aea23e84d8861631fae7e386f8cb79e338a63349 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Sat, 5 Jul 2025 16:32:07 +0530 Subject: [PATCH] add workers help message in next steps box --- .changeset/honest-rice-roll.md | 5 +++++ .../src/helpers/project-generation/post-installation.ts | 9 +++++++++ bun.lock | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .changeset/honest-rice-roll.md diff --git a/.changeset/honest-rice-roll.md b/.changeset/honest-rice-roll.md new file mode 100644 index 0000000..8e26653 --- /dev/null +++ b/.changeset/honest-rice-roll.md @@ -0,0 +1,5 @@ +--- +"create-better-t-stack": patch +--- + +add workers help message in neext steps box diff --git a/apps/cli/src/helpers/project-generation/post-installation.ts b/apps/cli/src/helpers/project-generation/post-installation.ts index 65c9783..79096bd 100644 --- a/apps/cli/src/helpers/project-generation/post-installation.ts +++ b/apps/cli/src/helpers/project-generation/post-installation.ts @@ -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`}`; +} diff --git a/bun.lock b/bun.lock index 99381dd..1f6eb5f 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,7 @@ }, "apps/cli": { "name": "create-better-t-stack", - "version": "2.22.10", + "version": "2.23.0", "bin": { "create-better-t-stack": "dist/index.js", },