run-yo
v1.0.2
Published
Run a yeoman generator which you are developing, very quickly.
Downloads
10
Readme
run-yo
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/examplerun-yo
supports scoped module, like @sanemat/generator-nm
.run-yo
based on yeomania.
For OS X, Linux And Windows.
Outline
- 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.
Install
$ npm install --save run-yo
CLI
$ 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
API
beta(input, [options])
CLI Default
Create a directory in the system temporary directory, ~~npm install
from working directory~~ symbolic link from the generator, execute yo [current generator]
and move to the target directory.
input
Required
Type: string
Run to the target directory.
options
info
Type: boolean
Default: true
Show a log above log level info.
verbose
Type: boolean
Default: false
Show a log above log level verbose.
debug
Type: boolean
Default: false
Show a log above log level debug.
stable(input, [options])
Create a directory in the system temporary directory, npm install
from working directory, execute yo [current generator]
and move to the target directory.
input
Required
Type: string
Run to the target directory.
options
info
Type: boolean
Default: true
Show a log above log level info.
verbose
Type: boolean
Default: false
Show a log above log level verbose.
debug
Type: boolean
Default: false
Show a log above log level debug.
Changelog
License
MIT © sanemat