Allow running local cli from terminal
This commit is contained in:
parent
d5ba36b974
commit
1dba7e0a5a
|
@ -47,6 +47,10 @@ function init(root, projectName) {
|
|||
spawn(path.resolve(__dirname, 'init.sh'), [projectName], {stdio:'inherit'});
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
run();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
run: run,
|
||||
init: init,
|
||||
|
|
Loading…
Reference in New Issue