blob: 071f4cdf75c61c3b3927424cfb7241016569f37b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import * as merge from 'merge-stream';
import {DEPENDENCIES} from '../config';
export = function buildDepsProd(gulp, plugins) {
return function () {
let stream = merge();
DEPENDENCIES.forEach(dep => {
stream.add(addStream(dep));
});
return stream;
function addStream(dep) {
let stream = gulp.src(dep.src);
stream.pipe(gulp.dest(dep.dest));
return stream;
}
};
};
|