generator-aspnetdnx2
Version:
Yeoman generator for ASP.NET 5 apps
18 lines (15 loc) • 652 B
JavaScript
;
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var Generator = module.exports = function Generator() {
yeoman.generators.Base.apply(this, arguments);
this.sourceRoot(path.join(__dirname, './templates/'));
};
util.inherits(Generator, yeoman.generators.Base);
Generator.prototype.generateStandardFile = function(sourceFile, targetFile) {
this.log('You called the aspnet subgenerator with the arg ' + sourceFile);
this.fs.copy(this.templatePath(sourceFile), this.destinationPath(targetFile));
this.log(targetFile + ' created.')
}