mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add Turso database setup functionality to project creation
This commit is contained in:
@@ -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...");
|
||||||
|
|||||||
Reference in New Issue
Block a user