generator-hilary
Version:
Yeoman generator for projects that use hilary IoC (DI)
22 lines (16 loc) • 415 B
JavaScript
;
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(
'iife.js',
this.name + '.js',
{ name: this.name }
);
};
module.exports = NamedGenerator;