Skip to content

generating new tasks and using series/parallel correctly #2732

Closed Answered by Clemens-E
Clemens-E asked this question in Help
Discussion options

You must be logged in to vote

While digging through some other GitHub issues, I finally understood that gulp doesn't expect a task to return another series (aka a function).
So I have to replace renderEnv with this:

function renderEnv(info, done) {
  console.debug('renderEnv', info);
  const funcs = template.map(n => mod(renderTemplate, n));
  return series(...funcs)(done); // (or parallel)
}

this will work like I wanted it and the execution log also follows my expected graph.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Clemens-E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant