UNPKG
gulp
Version:
latest (5.0.1)
5.0.1
5.0.0
4.0.2
4.0.1
4.0.0
3.9.1
3.9.0
3.8.11
3.8.10
3.8.9
3.8.8
3.8.7
3.8.6
3.8.5
3.8.4
3.8.3
3.8.2
3.8.1
3.8.0
3.7.0
3.6.2
3.6.1
3.6.0
3.5.6
3.5.5
3.5.2
3.5.1
3.5.0
3.4.0
3.3.4
3.3.2
3.3.1
3.3.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.4
3.1.3
3.1.2
3.1.1
3.0.0
2.7.0
2.6.1
2.6.0
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
0.2.0
0.1.0
0.0.9
0.0.8
0.0.7
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
The streaming build system
github.com/wearefractal/gulp
wearefractal/gulp
gulp
/
lib
/
taskTree.js
11 lines
(10 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'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
: []}); };