mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix post installation message for svelte
This commit is contained in:
5
.changeset/modern-olives-tap.md
Normal file
5
.changeset/modern-olives-tap.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
add svelte post installation hint
|
||||||
@@ -52,6 +52,7 @@ export function displayPostInstallInstructions(
|
|||||||
"next",
|
"next",
|
||||||
"tanstack-start",
|
"tanstack-start",
|
||||||
"nuxt",
|
"nuxt",
|
||||||
|
"svelte",
|
||||||
].includes(f),
|
].includes(f),
|
||||||
);
|
);
|
||||||
const hasNative = frontend?.includes("native");
|
const hasNative = frontend?.includes("native");
|
||||||
@@ -66,14 +67,18 @@ export function displayPostInstallInstructions(
|
|||||||
const hasTanstackStart = frontend?.includes("tanstack-start");
|
const hasTanstackStart = frontend?.includes("tanstack-start");
|
||||||
const hasReactRouter = frontend?.includes("react-router");
|
const hasReactRouter = frontend?.includes("react-router");
|
||||||
const hasNuxt = frontend?.includes("nuxt");
|
const hasNuxt = frontend?.includes("nuxt");
|
||||||
|
const hasSvelte = frontend?.includes("svelte");
|
||||||
const hasWebFrontend =
|
const hasWebFrontend =
|
||||||
hasTanstackRouter || hasReactRouter || hasTanstackStart || hasNuxt;
|
hasTanstackRouter ||
|
||||||
|
hasReactRouter ||
|
||||||
|
hasTanstackStart ||
|
||||||
|
hasNuxt ||
|
||||||
|
hasSvelte;
|
||||||
const hasNativeFrontend = frontend?.includes("native");
|
const hasNativeFrontend = frontend?.includes("native");
|
||||||
const hasFrontend = hasWebFrontend || hasNativeFrontend;
|
const hasFrontend = hasWebFrontend || hasNativeFrontend;
|
||||||
|
|
||||||
const webPort = hasReactRouter ? "5173" : "3001";
|
const webPort = hasReactRouter || hasSvelte ? "5173" : "3001";
|
||||||
const tazeCommand = getPackageExecutionCommand(packageManager, "taze -r");
|
const tazeCommand = getPackageExecutionCommand(packageManager, "taze -r");
|
||||||
|
|
||||||
consola.box(
|
consola.box(
|
||||||
`${pc.bold("Next steps")}\n${pc.cyan("1.")} ${cdCmd}
|
`${pc.bold("Next steps")}\n${pc.cyan("1.")} ${cdCmd}
|
||||||
${
|
${
|
||||||
|
|||||||
Reference in New Issue
Block a user