Opal-Estate-Pro/node_modules/gulp/lib/taskTree.js
2019-09-13 11:27:52 +07:00

15 lines
256 B
JavaScript
Executable File

'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: [],
});
};