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'});
|
spawn(path.resolve(__dirname, 'init.sh'), [projectName], {stdio:'inherit'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (require.main === module) {
|
||||||
|
run();
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
run: run,
|
run: run,
|
||||||
init: init,
|
init: init,
|
||||||
|
|
Loading…
Reference in New Issue