scaffold-pro
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -25,8 +25,8 @@ const fs = require('fs') | ||
} else if (args.redux) { | ||
files.push({ in: 'componentRedux.js', out: 'index.js' }) | ||
files.push({ in: 'statefulComponentRedux.js', out: `${args.name}.js` }) | ||
} else { | ||
files.push({ in: 'component.js', out: 'index.js' }) | ||
files.push({ in: 'statefulComponent.js', out: `${args.name}.js` }) | ||
} | ||
files.push({ in: 'componentRedux.js', out: 'index.js' }) | ||
files.push({ in: 'statefulComponentRedux.js', out: `${args.name}.js` }) | ||
} else { | ||
files.push({ in: 'component.js', out: 'index.js' }) | ||
files.push({ in: 'statefulComponent.js', out: `${args.name}.js` }) | ||
} | ||
if (args.tests) { | ||
@@ -98,10 +98,6 @@ if (args.redux) { | ||
makeFolder(newComponentPath) | ||
.then(() => { | ||
return writeTemplates(newComponentPath, args) | ||
}) | ||
.then(() => { | ||
resolve(args) | ||
}) | ||
.then(() => writeTemplates(newComponentPath, args)) | ||
.then(() => resolve(args)) | ||
.catch(reject) | ||
}) | ||
} |
{ | ||
"name": "scaffold-pro", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Build components, make money.", | ||
"main": "scaffold.js", | ||
"main": "index.js", | ||
"repository": "git@github.com:avill01/scaffold-pro.git", | ||
@@ -15,4 +15,5 @@ "author": "Alex Villarreal", | ||
"chalk": "^1.1.3", | ||
"commander": "^2.12.2", | ||
"inquirer": "^3.0.6" | ||
} | ||
} |
@@ -64,6 +64,4 @@ const fs = require('fs') | ||
]) | ||
.then(args => generator(args, componentPath)) | ||
.then(args => { | ||
return generator(args, componentPath) | ||
}) | ||
.then(args => { | ||
console.log( | ||
@@ -70,0 +68,0 @@ chalk.green( |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17306
16
297
3
+ Addedcommander@^2.12.2
+ Addedcommander@2.20.3(transitive)