add solid-start support

This commit is contained in:
Gregor Lohaus
2026-04-15 22:56:25 +02:00
parent 462866b8f2
commit e35a038f09
453 changed files with 394 additions and 7 deletions

View File

@@ -18,6 +18,15 @@ const project = await p.group(
return undefined
},
}),
frontend: async () =>
await p.select({
message: 'Pick a frontend framework.',
options: [
{value: "svelte-kit", label:"SvelteKit"},
{value: "solid-start", label:"SolidStart"}
]
})
,
goprefix: () =>
p.text({
message: "What would you like to use as a go package prefix?",
@@ -39,7 +48,8 @@ const createRenderer = initRenderer(path.join(import.meta.dir, '..', 'template')
const render = createRenderer(z.object({
project: z.object({
name: z.string(),
goprefix: z.string()
goprefix: z.string(),
frontend: z.literal("svelte-kit").or(z.literal("solid-start"))
})
}))
const destDir = path.join("./",project.name);