Gulp: allow passing parameters and revert one node make renaming

This commit is contained in:
Tim van der Meij 2016-03-13 15:23:41 +01:00
parent c6d2b7f9d9
commit 2b6d7ba3ec
2 changed files with 3 additions and 3 deletions

View File

@ -117,11 +117,11 @@ Object.keys(gulp.tasks).forEach(function (taskName) {
gulp.run(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 // The require('shelljs/make') import in make.js will try to execute tasks
// listed in arguments, guarding with gulpContext // listed in arguments, guarding with gulpContext
if (gulpContext) { if (gulpContext) {
oldTask.call(global.target); oldTask.call(global.target, args);
} }
}; };
}); });

View File

@ -1357,7 +1357,7 @@ target.mozcentralbaseline = function() {
if (test('-d', 'build')) { if (test('-d', 'build')) {
rm('-rf', 'build'); rm('-rf', 'build');
} }
exec('gulp mozcentral'); exec('node make mozcentral');
cd(ROOT_DIR); cd(ROOT_DIR);
mkdir(MOZCENTRAL_BASELINE_DIR); mkdir(MOZCENTRAL_BASELINE_DIR);