From 5a27ffb5f548d51ae189358c9981f1da1cf85509 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Mon, 16 Nov 2015 15:29:23 +0100 Subject: [PATCH] chore(bundling): prepare bundle with all external dependencies Currently: - zone.js - reflect-metadata Could contain shims in the future. --- gulpfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index a9f760cb11..bce3a240ce 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1025,6 +1025,10 @@ gulp.task('!bundle.js.min.deps', ['!bundle.js.min'], function() { .pipe(gulp.dest('dist/js/bundle')); }); +gulp.task('!bundle.external.deps', ['clean'], function() { + return addDevDependencies('external-dependencies.js'); +}); + var JS_DEV_DEPS = [ licenseWrap('node_modules/zone.js/LICENSE', true), 'node_modules/zone.js/dist/zone-microtask.js', @@ -1087,7 +1091,8 @@ gulp.task('bundles.js', '!bundle.js.min.deps', '!bundle.web_worker.js.dev.deps', '!bundle.js.sfx.dev.deps', - '!bundle.testing' + '!bundle.testing', + '!bundle.external.deps' ], function(done) { runSequence('!bundle.copy', '!bundles.js.checksize', done); });