teambition-cli
Advanced tools
Comparing version 0.0.8-alpha.0 to 0.0.8-alpha.1
@@ -78,3 +78,2 @@ #!/usr/bin/env node | ||
if(projectName !== '.'){ | ||
fs.mkdirSync(projectName) | ||
@@ -81,0 +80,0 @@ inquirer.prompt([{ |
@@ -5,4 +5,4 @@ const path = require('path') | ||
module.exports = function (url, target) { | ||
target = path.join(target || '.', target) | ||
module.exports = function (url, projectName) { | ||
const target = path.join(projectName || '.', projectName) | ||
return new Promise(function(resolve, reject){ | ||
@@ -12,3 +12,3 @@ const spinner = ora(`it is downloading template, source address: ${url}`) | ||
const command = `git clone ${url} --depth=1` | ||
const command = `git clone ${url} ${projectName} --depth=1` | ||
@@ -15,0 +15,0 @@ shelljs.exec(command, (code, output, error) => { |
{ | ||
"name": "teambition-cli", | ||
"version": "0.0.8-alpha.0", | ||
"version": "0.0.8-alpha.1", | ||
"description": "Teambition visualized cli for building web-app", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
110634
551