mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
24 lines
549 B
JavaScript
24 lines
549 B
JavaScript
'use strict';
|
|
var util = require('util');
|
|
var ScriptBase = require('../script-base.js');
|
|
|
|
var ComponentGenerator = module.exports = function ComponentGenerator(args, options, config) {
|
|
ScriptBase.apply(this, arguments);
|
|
};
|
|
|
|
util.inherits(ComponentGenerator, ScriptBase);
|
|
|
|
ComponentGenerator.prototype.createComponentFile = function createComponentFile() {
|
|
this.option('es6');
|
|
|
|
this.es6 = this.options.es6;
|
|
|
|
this.generateComponentTestAndStyle(
|
|
'Component',
|
|
'spec/Component',
|
|
'styles/Component',
|
|
'components',
|
|
true
|
|
);
|
|
};
|