mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
29 lines
678 B
JavaScript
29 lines
678 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.option('rich');
|
|
|
|
this.es6 = this.options.es6;
|
|
this.rich = this.options.rich;
|
|
console.log(this.architecture)
|
|
|
|
console.log('Creating a component');
|
|
|
|
this.generateComponentTestAndStyle(
|
|
'Component',
|
|
'spec/Component',
|
|
'styles/Component',
|
|
'components',
|
|
true
|
|
);
|
|
};
|