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);
|
||||
};
|
||||
|
||||
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);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user