add Turso database setup functionality to project creation

This commit is contained in:
fgrreloaded
2025-02-11 20:27:23 +05:30
parent a194cbc220
commit 8a77febd7e

View File

@@ -15,16 +15,11 @@ export async function createProject(options: ProjectOptions) {
spinner.start("Cloning template repository..."); spinner.start("Cloning template repository...");
await execa("git", [ await execa("git", [
"clone", "degit",
"--depth",
"1",
"https://github.com/AmanVarshney01/Better-T-Stack.git", "https://github.com/AmanVarshney01/Better-T-Stack.git",
projectDir, projectDir,
]); ]);
spinner.succeed(); spinner.succeed();
spinner.start("Removing template .git folder...");
await fs.remove(path.join(projectDir, ".git"));
spinner.succeed();
if (options.git) { if (options.git) {
spinner.start("Initializing git repository..."); spinner.start("Initializing git repository...");