yoxable
v1.2.0
Published
Create an executable from a Yeoman generator
Downloads
4
Readme
yoxable
Create an executable from a Yeoman generator
Usage
#!/usr/bin/env node
/** @file $project/bin/my-generator */
require('yoxable')({
pkg: require('../package.json'),
generators: [
require('../lib/generator1'),
require('../lib/generator2'),
// ... etc.
],
})(process.argv.slice(2));
Please note that unless you remove the first 2 arguments, node
and the name of your executable will be interpreted as Yeoman generators, and startup will fail.
If no arguments are provided, the first generator in the list is run.