Your generator could mixin the symLink()
method like so:
'use strict';
var generators = require( 'yeoman-generator' )
, _ = require( 'lodash' )
;
var MyGenerator = generators.Base.extend(
{
...
}
;
_.extend(
MyGenerator.prototype
, require( './generator-symlink.js' )
);
module.exports = MyGenerator;
Created for yeoman/generator#547