+5
-4
@@ -113,3 +113,3 @@ #!/usr/bin/env node | ||
| var projName = answer.name; | ||
| config.name = _.kebabCase(projName); | ||
| config.name = _.kebabCase(projName.trim()); | ||
| config.moduleName = _.pascalCase(config.name); | ||
@@ -125,9 +125,9 @@ return enquirer.prompt('compile'); | ||
| }).then(function (answer) { | ||
| config.version = answer.version || '1.0.0'; | ||
| config.version = answer.version.trim() || '1.0.0'; | ||
| return enquirer.prompt('description'); | ||
| }).then(function (answer) { | ||
| config.description = answer.description || config.name; | ||
| config.description = (answer.description || config.name).trim(); | ||
| return enquirer.prompt('author'); | ||
| }).then(function (answer) { | ||
| config.author = answer.author; | ||
| config.author = answer.author.trim(); | ||
| }).then(function () { | ||
@@ -139,1 +139,2 @@ copy(config); | ||
| cmd(argvs); | ||
+4
-4
| { | ||
| "name": "vgen", | ||
| "description": "vue plugin template generator", | ||
| "version": "2.3.1", | ||
| "version": "2.3.2", | ||
| "bin": { | ||
@@ -13,3 +13,3 @@ "vgen": "./index.js" | ||
| "type": "git", | ||
| "url": "git+https://github.com/AngusFu/vgen.git" | ||
| "url": "git+https://github.com/v-comp/vgen.git" | ||
| }, | ||
@@ -25,5 +25,5 @@ "keywords": [ | ||
| "bugs": { | ||
| "url": "https://github.com/AngusFu/vgen/issues" | ||
| "url": "https://github.com/v-comp/vgen/issues" | ||
| }, | ||
| "homepage": "https://github.com/AngusFu/vgen#readme", | ||
| "homepage": "https://github.com/v-comp/vgen#readme", | ||
| "dependencies": { | ||
@@ -30,0 +30,0 @@ "enquirer": "^0.4.1", |
Sorry, the diff of this file is not supported yet
38773
0.06%