From 2b6d7ba3ec4a2b06b3885f0efb92ad79af766888 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 13 Mar 2016 15:23:41 +0100 Subject: [PATCH] Gulp: allow passing parameters and revert one `node make` renaming --- gulpfile.js | 4 ++-- make.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 87afc0113..bf77da260 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -117,11 +117,11 @@ Object.keys(gulp.tasks).forEach(function (taskName) { gulp.run(taskName); }; - global.target[taskName] = function () { + global.target[taskName] = function (args) { // The require('shelljs/make') import in make.js will try to execute tasks // listed in arguments, guarding with gulpContext if (gulpContext) { - oldTask.call(global.target); + oldTask.call(global.target, args); } }; }); diff --git a/make.js b/make.js index 561cf9c62..c70b1a073 100644 --- a/make.js +++ b/make.js @@ -1357,7 +1357,7 @@ target.mozcentralbaseline = function() { if (test('-d', 'build')) { rm('-rf', 'build'); } - exec('gulp mozcentral'); + exec('node make mozcentral'); cd(ROOT_DIR); mkdir(MOZCENTRAL_BASELINE_DIR);