Gulp: allow passing parameters and revert one node make
renaming
This commit is contained in:
parent
c6d2b7f9d9
commit
2b6d7ba3ec
@ -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
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…
Reference in New Issue
Block a user