generator-ngfs
Version:
Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node
20 lines (15 loc) • 577 B
JavaScript
var path = require('path');
var util = require('util');
var yeoman = require('yeoman-generator');
var Generator = module.exports = function Generator() {
yeoman.generators.Base.apply(this, arguments);
};
util.inherits(Generator, yeoman.generators.Base);
Generator.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);
this.copy('gitignore', '.gitignore');
};
;