mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add starlight docs addon
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user