UNPKG

generator-aspnetdnx2

Version:
18 lines (15 loc) 652 B
'use strict'; 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.') }