blob: accb1a77f36877052d848aed37d18cecaa92bf9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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: [],
});
};
|