Comparing version
@@ -42,6 +42,9 @@ var fs = require('fs'); | ||
} | ||
global.serve = function (options) { | ||
if(options.tsc == 'true') | ||
tsc(); | ||
serve(options); | ||
global.serve = function (options) { | ||
if (options.tsc == 'true') | ||
tsc(function () { | ||
serve(options); | ||
}); | ||
else | ||
serve(options); | ||
} | ||
@@ -60,3 +63,3 @@ | ||
availableSeed: ['ngEmpty', 'ngButton', 'ngTab', 'tsEmpty', 'tsTab', 'tsButton', 'empty', 'button', 'tab', 'koEmpty', 'koButton', 'koTab'] | ||
} | ||
} | ||
if (process.argv.length > 2) { | ||
@@ -68,3 +71,3 @@ command = (process.argv[2]).toString().trim(); | ||
this.options.app = (process.argv[3]); | ||
else if(!(appName.indexOf("--") > -1)) { | ||
else if (!(appName.indexOf("--") > -1)) { | ||
console.log(chalk.red("The template application '" + appName + "' is not availabe")); | ||
@@ -71,0 +74,0 @@ process.exit(); |
@@ -5,3 +5,3 @@ var exec = require('child_process').exec; | ||
function tsc() { | ||
function tsc(fn) { | ||
@@ -17,3 +17,7 @@ var commands = 'dir *.ts /b /s > ts-files.txt & tsc @ts-files.txt & del ts-files.txt'; | ||
} | ||
else { | ||
fn(); | ||
} | ||
}); | ||
} |
{ | ||
"name": "ej-cli", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/cli.js", |
10098
1.19%272
2.26%