UNPKG

224 BJavaScriptView Raw
1'use strict';
2
3module.exports = function(tasks) {
4 return Object.keys(tasks).reduce(function(prev, task) {
5 prev.nodes.push({
6 label: task,
7 nodes: tasks[task].dep
8 });
9 return prev;
10 }, {nodes: []});
11};
\No newline at end of file