Allow running local cli from terminal

This commit is contained in:
Alex Kotliarskyi 2015-04-07 12:33:41 -07:00
parent d5ba36b974
commit 1dba7e0a5a
1 changed files with 4 additions and 0 deletions

View File

@ -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,