generator-requirejs
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -10,2 +10,4 @@ 'use strict'; | ||
this.options = options || {}; | ||
this.on('end', function () { | ||
@@ -21,2 +23,3 @@ this.installDependencies({ skipInstall: options['skip-install'] }); | ||
AppGenerator.prototype.askFor = function askFor() { | ||
var cb = this.async(); | ||
@@ -39,2 +42,9 @@ | ||
if (this.options.promptDefaults) { | ||
this.appname = this.options.promptDefaults.appname; | ||
this.appdescription = this.options.promptDefaults.appdescription; | ||
cb(); | ||
return; | ||
} | ||
var prompts = [{ | ||
@@ -92,4 +102,3 @@ name: 'appname', | ||
this.directory('test', 'test'); | ||
// this.directory('libs', 'libs'); | ||
this.template('index.htm', 'index.htm'); | ||
}; |
{ | ||
"name": "generator-requirejs", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "A generator for Yeoman", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"dependencies": { | ||
"yeoman-generator": "~0.10.2" | ||
"yeoman-generator": "~0.10.5" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
@@ -9,6 +9,10 @@ # Yeoman RequireJS Generator | ||
`npm install -g yo` | ||
- Install the generator **locally**: `npm install yeoman-generator-require` | ||
- Run: `yo yeoman-generator-require` | ||
- Install the generator **locally**: `npm install generator-requirejs` | ||
- Run: `yo requirejs` | ||
## Demo Application | ||
Run `yo requirejs:demo` to install a demo application | ||
## License | ||
[MIT License](http://en.wikipedia.org/wiki/MIT_License) |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
21459
30
360
18
4
Updatedyeoman-generator@~0.10.5