UNPKG

generator-hilary

Version:

Yeoman generator for projects that use hilary IoC (DI)

23 lines (17 loc) 442 B
/*jslint node: true*/ 'use strict'; var util = require('util'), SubGenerator = require('../SubGenerator.js'), NamedGenerator; NamedGenerator = function () { SubGenerator.apply(this, arguments); }; util.inherits(NamedGenerator, SubGenerator); NamedGenerator.prototype.createNamedItem = function () { this.generateTemplateFile( 'gruntTask.js', this.name + '.js', { name: this.name } ); }; module.exports = NamedGenerator;