UNPKG

generator-hilary

Version:

Yeoman generator for projects that use hilary IoC (DI)

22 lines (16 loc) 419 B
'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( 'json.json', this.name + '.json', { name: this.name } ); }; module.exports = NamedGenerator;