Files
generator-react-webpack/component/index.js
T
2014-01-08 12:41:11 +00:00

18 lines
452 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.generateSourceAndTest(
'Component',
'spec/Component',
'components'
);
};