paulwalko.github.io/node_modules/gulp/lib/taskTree.js

15 lines
256 B
JavaScript
Raw Normal View History

2016-06-09 17:51:55 -04:00
'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: [],
});
};