mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
TODO: - App tests - Generator tests - Component generator Signed-off-by: Simon Bailey <simon@newtriks.com>
18 lines
591 B
JavaScript
18 lines
591 B
JavaScript
'use strict';
|
|
var path = require('path');
|
|
var util = require('util');
|
|
var yeoman = require('yeoman-generator');
|
|
|
|
var CommonGenerator = module.exports = function CommonGenerator(args, options, config) {
|
|
yeoman.generators.NamedBase.apply(this, arguments);
|
|
};
|
|
|
|
util.inherits(CommonGenerator, yeoman.generators.NamedBase);
|
|
|
|
CommonGenerator.prototype.setupEnv = function setupEnv() {
|
|
// Copies the contents of the generator `templates`
|
|
// directory into your users new application path
|
|
this.sourceRoot(path.join(__dirname, '../templates/common'));
|
|
this.directory('root', '.', true);
|
|
};
|