add expo, massively simplify svelte and solid examples

This commit is contained in:
2026-06-03 17:05:06 +02:00
parent d33b9c5467
commit d1c46cdee1
28 changed files with 232 additions and 465 deletions

View File

@@ -46,6 +46,9 @@ const project = await p.group(
return undefined
},
}),
installDeps: async () => {
return await p.confirm({message: "Install dependencies?", })
}
},
{
onCancel: () => {
@@ -69,15 +72,10 @@ const destDir = path.join("./", project.name);
render(destDir, { project }, { reverseMap: true })
const s = p.spinner();
s.start("Installing dependencies");
await Bun.$`bun install`.cwd(path.join(destDir)).quiet();
await Bun.$`bun install`.cwd(path.join(destDir, 'packages', 'rpc')).quiet();
if (project.frontend !== "none") {
await Bun.$`bun install`.cwd(path.join(destDir, 'apps', 'web')).quiet();
if (project.installDeps) {
s.start("Installing dependencies");
await Bun.$`bun install`.cwd(path.join(destDir)).quiet();
s.stop("Dependencies installed.");
}
if (project.mobile !== "none") {
await Bun.$`bun install`.cwd(path.join(destDir, 'apps', 'mobile')).quiet();
}
s.stop("Dependencies installed.");
p.outro("You're all set!");