aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/build.deps.ts
diff options
context:
space:
mode:
authorAlex Tatiyants <atatiyan@gmail.com>2016-01-03 17:17:48 -0800
committerAlex Tatiyants <atatiyan@gmail.com>2016-01-03 17:17:48 -0800
commit5310ac7d8eb1838a6297117bc7f9fca70291f46a (patch)
tree28f54b184cb85f04e6d6720dd03258f3728fedde /tools/tasks/build.deps.ts
initial commit
Diffstat (limited to 'tools/tasks/build.deps.ts')
-rw-r--r--tools/tasks/build.deps.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/tasks/build.deps.ts b/tools/tasks/build.deps.ts
new file mode 100644
index 0000000..071f4cd
--- /dev/null
+++ b/tools/tasks/build.deps.ts
@@ -0,0 +1,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;
+ }
+ };
+};