Browse Source

Gulp: allow passing parameters and revert one `node make` renaming

Tim van der Meij 9 years ago
parent
commit
2b6d7ba3ec
  1. 4
      gulpfile.js
  2. 2
      make.js

4
gulpfile.js

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

2
make.js

@ -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);

Loading…
Cancel
Save