Run a yeoman generator which you are developing, very quickly.
To speed up a development on your yeoman generator!
Put a generated example into the generator repository easily. E.g. pandawing/generator-nm5/example
run-yo
supports scoped module, like @sanemat/generator-nm
.
run-yo
based on yeomania.
For OS X, Linux And Windows.
- Create a directory in the system temporary directory.
- Create a symbolic link from src(working directory) to dest(temp/node_modules/your_generator).
- Execute Yo [your yeoman generator] in the temporary directory.
- Unlink the symbolic link.
- Move the app which is generated to the target.
$ npm install --save run-yo
$ npm install --global run-yo
$ run-yo --help
Usage
run-yo [input (default: example)]
Examples
run-yo
(run the yeoman generator from ./ to ./example/ )
run-yo ../path/to/sample
(run the yeoman generator from ./ to ../path/to/sample/ )
Options
--stable RunYo safely, but slowly. Default: false
--info Show a log above log level info. Default: true
--verbose Show a log above log level verbose. Default: false
--debug Show a log above log level debug. Default: false
CLI Default
Create a directory in the system temporary directory, symbolic link from the generator, execute npm install
from working directoryyo [current generator]
and move to the target directory.
Required
Type: string
Run to the target directory.
Type: boolean
Default: true
Show a log above log level info.
Type: boolean
Default: false
Show a log above log level verbose.
Type: boolean
Default: false
Show a log above log level debug.
Create a directory in the system temporary directory, npm install
from working directory, execute yo [current generator]
and move to the target directory.
Required
Type: string
Run to the target directory.
Type: boolean
Default: true
Show a log above log level info.
Type: boolean
Default: false
Show a log above log level verbose.
Type: boolean
Default: false
Show a log above log level debug.
MIT © sanemat