main.js 520 B

123456789101112131415161718
  1. // in real use case, users need to require `yeoman-generators`
  2. // var generators = require('yeoman-generators');
  3. var generators = require('../../../');
  4. var util = require('util');
  5. var Generator = module.exports = function Generator(args, options) {
  6. generators.NamedBase.apply(this, arguments);
  7. // arguments === this.arguments
  8. // options === this.options
  9. };
  10. // namespace
  11. Generator.namespace = 'mocha:generator-base';
  12. util.inherits(Generator, generators.NamedBase);
  13. Generator.prototype.doStuff = function() {};