fix(init): document Vite and ask in init (#3281) (#3286)

Expands #3277

---------

Co-authored-by: fry69 <142489379+fry69@users.noreply.github.com>
This commit is contained in:
Marvin Hagemeister
2025-09-01 07:58:37 +02:00
committed by GitHub
co-authored by fry69
parent e33b447768
commit 33cb164b7d
4 changed files with 100 additions and 8 deletions
+11 -1
View File
@@ -58,6 +58,9 @@ export const CONFIRM_TAILWIND_MESSAGE = `Set up ${
colors.cyan("Tailwind CSS")
} for styling?`;
export const CONFIRM_VSCODE_MESSAGE = `Do you use ${colors.cyan("VS Code")}?`;
export const CONFIRM_VITE_MESSAGE = `Set up ${
colors.cyan("Vite")
} for build tooling?`;
export async function initProject(
cwd = Deno.cwd(),
@@ -110,7 +113,14 @@ export async function initProject(
}
}
const useVite = flags.vite ?? false;
let useVite = flags.vite || false;
if (flags.vite == null) {
if (
confirm(CONFIRM_VITE_MESSAGE)
) {
useVite = true;
}
}
const useDocker = flags.docker;
let useTailwind = flags.tailwind || false;