create-l3-app
Advanced tools
Comparing version 1.0.4 to 1.0.5
27
bin.js
@@ -45,2 +45,25 @@ #!/usr/bin/env Node | ||
function removeDefaultGit() { | ||
return new Promise(resolve => { | ||
const process = spawn('cd', [`./${projectName}`, '&&', 'rm', '-rf', '.git']); | ||
process.on('close', code => { | ||
resolve(code); | ||
}); | ||
}); | ||
} | ||
function createNewGit() { | ||
return new Promise(resolve => { | ||
const process = spawn('cd', [`./${projectName}`, '&&', 'git', 'init']); | ||
process.on('close', code => { | ||
resolve(code); | ||
}); | ||
}); | ||
} | ||
async function main() { | ||
@@ -53,4 +76,8 @@ const projectName = await getProjectName(); | ||
await createProject(projectName); | ||
await removeDefaultGit(); | ||
await createNewGit(); | ||
console.log('Project created!'); | ||
process.exit(0); | ||
} | ||
@@ -57,0 +84,0 @@ |
{ | ||
"name": "create-l3-app", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"bin": { | ||
@@ -5,0 +5,0 @@ "create-l3-app": "bin.js" |
1922
64