Basic project generator setup

TODO:

- App tests
- Generator tests
- Component generator

Signed-off-by: Simon Bailey <simon@newtriks.com>
This commit is contained in:
Simon Bailey
2014-01-07 20:00:49 +00:00
commit b1562cd74c
29 changed files with 17271 additions and 0 deletions
+17
View File
@@ -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);
};