This commit is contained in:
Leo Lee (DEVDIV) 2015-01-22 22:48:18 -08:00
Родитель 452fc9d055
Коммит 1da12fdf6b
2 изменённых файлов: 14 добавлений и 8 удалений

Просмотреть файл

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

Просмотреть файл

@ -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: "." });
});