Skip to content

Commit

Permalink
Allow running local cli from terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic committed Apr 7, 2015
1 parent d5ba36b commit 1dba7e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions local-cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1dba7e0

Please sign in to comment.