add expo, massively simplify svelte and solid examples
This commit is contained in:
16
index.ts
16
index.ts
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user