diff options
Diffstat (limited to 'node_modules/gulp/lib/taskTree.js')
-rw-r--r-- | node_modules/gulp/lib/taskTree.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/gulp/lib/taskTree.js b/node_modules/gulp/lib/taskTree.js new file mode 100644 index 000000000..accb1a77f --- /dev/null +++ b/node_modules/gulp/lib/taskTree.js @@ -0,0 +1,14 @@ +'use strict'; + +module.exports = function(tasks) { + return Object.keys(tasks) + .reduce(function(prev, task) { + prev.nodes.push({ + label: task, + nodes: tasks[task].dep, + }); + return prev; + }, { + nodes: [], + }); +}; |