Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scaffold-pro

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scaffold-pro - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

index.js

20

lib/generator.js

@@ -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"
}
}

4

scaffold.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc