mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-28 12:49:21 +08:00
16 lines
462 B
JavaScript
16 lines
462 B
JavaScript
'use strict';
|
|
|
|
var util = require('util');
|
|
var ScriptBase = require('../script-base.js');
|
|
|
|
var MainGenerator = module.exports = function MainGenerator(args, options, config) {
|
|
ScriptBase.apply(this, arguments);
|
|
};
|
|
|
|
util.inherits(MainGenerator, ScriptBase);
|
|
|
|
MainGenerator.prototype.createAppFile = function createAppFile() {
|
|
this.appTemplate('App', 'components/' + this.scriptAppName);
|
|
this.testTemplate('spec/App', 'components/' + this.scriptAppName);
|
|
};
|