yo2
v0.0.2
Published
alternative yeoman cli
Downloads
2
Readme
Yo2
Yo2 is a faster and more user friendly alternative to the Yeoman CLI. It achieves this by eliminating the unnessary network calls that yeoman-cli makes. Yo2 will not make calls through insights. It just runs the generator as you would expect.
npm install yo2 -g
When it comes to running your generator yo2 works just like yo-cli. The first argument is the generator's name!
yo2 [name] [...options or arguments]
Aliasing generator names
Did someone use your generator name? No worries, Yo2 provides an aliasing feature that allows generator names to be aliased to whatever you what.
yo2 --alias newName:oldName
yo2 --alias react:react-component123
You list alias by running the alias flag with no arguments
yo2 --alias
{
react: 'react-component123'
}
You can remove aliases with the --alias-rm
flag
yo2 --alias-rm react
Programmatic API
Yo2 can also be used programmaticaly. Here's an example of running the react2 generator.
const yo = require('yo2');
yo.run([ 'react2', './src/app/components' ], { stateless: true });
The run
method accepts two arguments: a set of command-arguments and the generator options.
License
MIT