Closed voxpelli closed 7 months ago
Fixed linting errors, sorry for that.
Also, if you wonder why I chose {%}
– no specific reason other than that it wasn't used before, didn't seem to have another meaning in eg. Bash + it was in line with the style of {@}
and {*}
Now it's primarily failing because of .flat()
only being supported in Node 11 and newer. That can of course be fixed if you like this PR @mysticatea
What is it?
This adds a new placeholder,
{%}
, which unfolds into multiple tasks – one for each input argument. The unfolded tasks gets assigned{1}
,{2}
etc instead of{%}
.Purpose
Be able to in parallell process a single npm task X times with a different argument each time.
Example
Same as:
Example using shell globbing