chore(bundles): don't duplicate reflect-metadata in http bundle

Since HTTP can't be used on its own there is no reason for duplicating
reflect-metadata in the http bundle
This commit is contained in:
Pawel Kozlowski 2015-11-02 15:39:00 +01:00
parent 2f047887d3
commit bff9dc26c7
1 changed files with 5 additions and 8 deletions

View File

@ -1067,19 +1067,16 @@ gulp.task('!bundle.js.sfx.dev', ['build.js.dev'], function() {
gulp.task('!bundle.js.prod.deps', ['!bundle.js.prod'], function() {
return merge2(
addDevDependencies('angular2.min.js'),
bundler.modify(
['node_modules/reflect-metadata/Reflect.js', 'dist/build/http.js'],
'http.js'
)).pipe(gulp.dest('dist/js/bundle'));
bundler.modify(['dist/build/http.js'], 'http.js')
)
.pipe(gulp.dest('dist/js/bundle'));
});
gulp.task('!bundle.js.min.deps', ['!bundle.js.min'], function() {
return merge2(
addDevDependencies('angular2.min.js'),
bundler.modify(
['node_modules/reflect-metadata/Reflect.js', 'dist/build/http.min.js'],
'http.min.js'
))
bundler.modify(['dist/build/http.min.js'], 'http.min.js')
)
.pipe(uglify())
.pipe(gulp.dest('dist/js/bundle'));
});