зеркало из https://github.com/microsoft/TACO.git
Fixing up typo in gulpfile
I'd missed a space, so gulp prep was trying to do "npm installdel" instead of "npm install del", which means that the command errors out. Don't know why it seemed to work before though.
This commit is contained in:
Родитель
c21d8c0bcd
Коммит
a1850f8d00
|
@ -19,10 +19,12 @@ gulp.task("install", function (callback) {
|
|||
var modules = ["del", "gulp", "typescript", "ncp", "q"];
|
||||
var asyncLoop = function(idx) {
|
||||
if (idx < modules.length) {
|
||||
exec("npm install" + modules[idx], { cwd: ".."}, function(error, stdout, stderr) {
|
||||
exec("npm install " + modules[idx], { cwd: ".."}, function(error, stdout, stderr) {
|
||||
if (!error) {
|
||||
asyncLoop(idx + 1);
|
||||
} else {
|
||||
console.warn(stdout);
|
||||
console.warn(stderr);
|
||||
callback(error);
|
||||
}
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче