Created
August 1, 2016 07:51
-
-
Save kristw/76e4400c09b39df5880fc6fed25ff3bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// generator from another package | |
this.composeWith('backbone:route', { | |
options: options | |
}, { | |
local: require.resolve('generator-bootstrap') | |
}); | |
// local subgenerator | |
this.composeWith('mygenerator:git', { | |
options: options | |
}, { | |
local: require.resolve('../git') | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.easily | |
.setResolver(require.resolve) | |
.composeWithExternal( | |
'generator-bootstrap', | |
'backbone:route', | |
options | |
) | |
.composeWithLocal( | |
'git', | |
'mygenerator:git', | |
options | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment