UNPKG

generator-netcore-mvc

Version:

A basic yeoman generator that will setup an MVC site with a default directory.

27 lines (17 loc) 459 B
var FileSystem = function(fs) { this.fs = fs; }; module.exports = FileSystem; var mkdirp = require('mkdirp'); FileSystem.prototype.createDir = function(path) { // just delegate to mkdirp. why? so we can mock filesystem if we want. mkdirp(path); }; FileSystem.prototype.createTemplate = function(source, dest, replacements) { // we'll hit the fs this time. this.fs.copyTpl( source, dest, replacements ); };