mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
Basic project generator setup
TODO: - App tests - Generator tests - Component generator Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
'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);
|
||||
};
|
||||
Reference in New Issue
Block a user