added flag --es6

This commit is contained in:
Emil Stenberg
2014-12-10 09:48:37 +01:00
parent 190054c595
commit 33e42f3ede
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -6,12 +6,14 @@ var generalUtils = require('../util.js');
var ReactWebpackGenerator = module.exports = function ReactWebpackGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
this.option('es6');
this.argument('appname', { type: String, required: false });
this.appname = this.appname || path.basename(process.cwd());
this.appname = this._.camelize(this._.slugify(this._.humanize(this.appname)));
this.scriptAppName = this._.capitalize(this.appname) + generalUtils.appName(this);
args = ['main'];
if (typeof this.options.appPath === 'undefined') {