Skip to content

Commit 935720f

Browse files
committed
Cleanup
1 parent dc40547 commit 935720f

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

packages/@apphosting/create/src/bin/create.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import chalk from "chalk";
1010

1111
const contextIsNpmCreate = process.env.npm_command === "init";
1212

13-
const STARTERS: Record<
14-
string,
15-
Array<{ name: string; value: string; description: string; products: string[]; init?: string }>
16-
> = {
13+
type Starter = { name: string; value: string; description: string; products: string[] };
14+
15+
const STARTERS: Record<string, Array<Starter>> = {
1716
angular: [
1817
{
1918
name: "Basic",
@@ -74,15 +73,13 @@ const STARTERS: Record<
7473
description:
7574
"A headless Shopify ecommerce template built with Next.js, the Shopify Storefront API, and Firebase Data Connect.",
7675
products: ["Data Connect", "Auth", "Gemini", "Shopify"],
77-
init: "apphosting,dataconnect,auth",
7876
},
7977
{
8078
name: "Firebase ecommerce",
8179
value: "firebase-ecommerce",
8280
description:
8381
"A Firebase-based e-commerce application designed for developers to bootstrap their e-commerce projects.",
8482
products: ["Data Connect", "Auth", "Gemini", "Stripe"],
85-
init: "apphosting,dataconnect,auth",
8683
},
8784
],
8885
};
@@ -166,7 +163,6 @@ program
166163
});
167164
}
168165
const cloneSpinner = ora("Cloning template...").start();
169-
// TODO allow different templates
170166
await downloadTemplate(
171167
`gh:FirebaseExtended/firebase-framework-tools/starters/${framework}/${example}`,
172168
{ dir: directory, force: true },
@@ -192,15 +188,6 @@ program
192188
});
193189
await rm(join(directory, "package-lock.json"));
194190
}
195-
/*
196-
const init = STARTERS[framework].find(it => it.value === example)!.init ?? "apphosting";;
197-
console.log(`> firebase init ${init}`);
198-
await await spawn("npx", ["-y", "firebase-tools@latest", "init", init], {
199-
shell: true,
200-
stdio: "inherit",
201-
cwd: directory,
202-
});
203-
*/
204191
},
205192
);
206193

0 commit comments

Comments
 (0)