'use strict';
var util = require('util');
var yeoman = require('yeoman-generator');

var ComponentGenerator = module.exports = function ComponentGenerator(args, options, config) {
    // By calling `NamedBase` here, we get the argument to the subgenerator call
    // as `this.name`.
    yeoman.generators.NamedBase.apply(this, arguments);
    this.componentName = (this._.camelize(this._.slugify(this.name))).toLowerCase() || 'edge';
};

util.inherits(ComponentGenerator, yeoman.generators.NamedBase);

ComponentGenerator.prototype.files = function files() {
    this.copy('_styles.scss', 'app/public/components/' + this.componentName + '/_' + this.componentName + '.scss');
    this.copy('_view.jade', 'app/public/components/' + this.componentName + '/_' + this.componentName + '.jade');
    this.copy('script.js', 'app/public/components/' + this.componentName + '/' + this.componentName + '.js');
};

@@ -530,39 +530,451 @@
 ype.
-files = function files(
+askFor = function askFor() %7B%0A    var cb = this.async();%0A%0A    var prompts = %5B%7B%0A        type: 'confirm',%0A        name: 'hasSCSS',%0A        message: 'Do you wish to include a SCSS file with your component?',%0A        default: true%0A    %7D,%7B%0A        type: 'confirm',%0A        name: 'hasJS',%0A        message: 'Do you wish to include a JavaScript file with your component?',%0A        default: true%0A    %7D%5D;%0A%0A    this.prompt(prompts, function (props
 ) %7B%0A    
 this
@@ -973,31 +973,195 @@
     
+ 
+   
 this.
-copy('_styles.scss
+hasSCSS = props.hasSCSS;%0A        this.hasJS = props.hasJS;%0A%0A        cb();%0A    %7D.bind(this));%0A%7D;%0A%0AComponentGenerator.prototype.files = function files() %7B%0A    this.copy('_view.jade
 ', '
@@ -1241,16 +1241,44 @@
 + '.
-scss
+jade
 ');%0A
+    if (this.hasSCSS) %7B%0A    
     
@@ -1285,33 +1285,35 @@
 this.copy('_
-view.jade
+styles.scss
 ', 'app/publ
@@ -1377,32 +1377,64 @@
 entName + '.
-jade');%0A
+scss');%0A    %7D%0A    if (this.hasJS) %7B%0A    
     this.cop
@@ -1531,11 +1531,17 @@
 '.js');%0A
+    %7D%0A
 %7D;%0A

Add prompts to component sub-generator