From 1da12fdf6b35cd0c7c68d37a605990621a02c9a7 Mon Sep 17 00:00:00 2001 From: "Leo Lee (DEVDIV)" Date: Thu, 22 Jan 2015 22:48:18 -0800 Subject: [PATCH] updated package.json --- TACO/taco-cli/package.json | 8 ++++++-- TACO/taco-cli/prepProject.js | 14 ++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/TACO/taco-cli/package.json b/TACO/taco-cli/package.json index 27a7f4a4..f43aa23f 100644 --- a/TACO/taco-cli/package.json +++ b/TACO/taco-cli/package.json @@ -34,10 +34,14 @@ "engines": { "node": ">=0.8.0" }, - "dependencies" : { - "typescript": ">=1.4.1" + "dependencies": { + "cordova": "^4.2.0", + "nconf": "^0.7.1", + "nopt": "^3.0.1", + "q": "^1.1.2" }, "devDependencies": { + "typescript": ">=1.4.1", "del": "^1.0.0", "event-stream": "^3.1.7", "gulp": "^3.8.10", diff --git a/TACO/taco-cli/prepProject.js b/TACO/taco-cli/prepProject.js index 73fa4b6a..f7a37c32 100644 --- a/TACO/taco-cli/prepProject.js +++ b/TACO/taco-cli/prepProject.js @@ -11,11 +11,17 @@ var installGlobalPackage = function (packageName) { packageCommand = "npm ls -g " + packageName; var result = exec(packageCommand, function (error, stdout, stderr) { if (stdout.indexOf(packageName) > -1) { - console.log("---found gulp installed globally"); + console.log("---found '" + packageName + "' installed globally"); } else { console.log("---did not find " + packageName + " installed globally, installing.....") exec("npm install -g " + packageName); } + + if (packageName == "typescript") { + //compile root gulptfile.ts + console.log("---compiling gulpfile.ts"); + var compileTSOutput = exec("tsc gulpfile.ts --module commonjs", { cwd: "." }); + } }); @@ -33,8 +39,4 @@ var foldersToPrep = [".", foldersToPrep.forEach(function (folder) { console.log("---NPM install on folder: " + path.resolve(folder)); var npmProcess = exec("npm install", { cwd: folder }); -}); - -//compile root gulptfile.ts -console.log("---compiling gulpfile.ts"); -var compileTSOutput = exec("tsc gulpfile.ts --module commonjs", { cwd: "." }); \ No newline at end of file +}); \ No newline at end of file