Skip to content

Instantly share code, notes, and snippets.

@cueedee
Last active January 19, 2017 14:59
Show Gist options
  • Save cueedee/e8746a94c9af9b796c6b1530e69d3587 to your computer and use it in GitHub Desktop.
Save cueedee/e8746a94c9af9b796c6b1530e69d3587 to your computer and use it in GitHub Desktop.
Yeoman generator mixin method for generating symbolic links.

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;
@cueedee
Copy link
Author

cueedee commented Aug 3, 2016

Created for yeoman/generator#547

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment