mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
27 lines
560 B
JavaScript
27 lines
560 B
JavaScript
'use strict';
|
|
var util = require('util');
|
|
var ScriptBase = require('../script-base.js');
|
|
|
|
var ActionGenerator = module.exports = function ActionGenerator(args, options, config) {
|
|
args[0] += 'ActionCreators';
|
|
ScriptBase.apply(this, arguments);
|
|
}
|
|
|
|
util.inherits(ActionGenerator, ScriptBase);
|
|
|
|
ActionGenerator.prototype.createActionFile = function createActionFile() {
|
|
this.option('es6');
|
|
|
|
this.es6 = this.options.es6;
|
|
|
|
console.log(this.name);
|
|
|
|
this.generateSourceAndTest(
|
|
'Action',
|
|
'spec/Action',
|
|
void(0),
|
|
'actions',
|
|
false
|
|
);
|
|
}
|