add starlight docs addon

This commit is contained in:
Aman Varshney
2025-04-10 20:35:15 +05:30
parent 6847603b5c
commit aac6a7d267
11 changed files with 118 additions and 20 deletions

View File

@@ -14,6 +14,11 @@ export async function getAddonsChoice(
frontends?.includes("tanstack-router");
const addonOptions = [
{
value: "starlight" as const,
label: "Starlight",
hint: "Add Astro Starlight documentation site",
},
{
value: "biome" as const,
label: "Biome",

View File

@@ -62,12 +62,6 @@ export async function gatherConfig(
results.database !== "none",
results.frontend,
),
dbSetup: ({ results }) =>
getDBSetupChoice(
results.database ?? "none",
flags.dbSetup,
results.orm,
),
addons: ({ results }) => getAddonsChoice(flags.addons, results.frontend),
examples: ({ results }) =>
getExamplesChoice(
@@ -76,6 +70,12 @@ export async function gatherConfig(
results.frontend,
results.backend,
),
dbSetup: ({ results }) =>
getDBSetupChoice(
results.database ?? "none",
flags.dbSetup,
results.orm,
),
git: () => getGitChoice(flags.git),
packageManager: () => getPackageManagerChoice(flags.packageManager),
noInstall: () => getNoInstallChoice(flags.noInstall),