Skip to content

Commit

Permalink
Issue #386 [Enhancement][WIP] Add displayName to anonymous gulp subta…
Browse files Browse the repository at this point in the history
…sks for plugins
  • Loading branch information
t2ym committed Sep 3, 2020
1 parent 9acf158 commit 0c76406
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions demo-config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const task = function (pluginName) {
}
return gulp.task(pluginName,
gulp.series(
(done) => {
Object.assign((done) => {
if (Array.isArray(plugin.dependencies)) {
plugin.dependencies.forEach(dependency => {
if(!(targetConfig[dependency] && targetConfig[dependency].done)) {
Expand All @@ -61,13 +61,13 @@ const task = function (pluginName) {
});
}
done();
},
plugin.configurator(targetConfig),
(done) => {
}, { displayName: `${pluginName} check dependencies` }),
Object.assign(plugin.configurator(targetConfig), { displayName: `${pluginName} configurator` }),
Object.assign((done) => {
targetConfig[pluginName] = targetConfig[pluginName] || {};
targetConfig[pluginName].done = true;
done();
}
}, { displayName: `${pluginName} done` }),
)
);
}
Expand Down

0 comments on commit 0c76406

Please sign in to comment.