X Tutup
Skip to content

Commit 61b9468

Browse files
fix(bundles): rename UMD bundles
BREAKING CHANGE: UMD bundles were renamed: * `angular2.umd.js` -> `angular2-all.umd.js` * `angular2-testing.umd.js` -> `angular2-all-testing.umd.js` Closes #5898
1 parent c6f52e3 commit 61b9468

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

gulpfile.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,10 +1176,12 @@ gulp.task('!bundles.js.umd', ['build.js.dev'], function() {
11761176
}
11771177

11781178
return q.all([
1179-
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2.umd.js'], 'angular2', 'dev')),
1180-
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2.umd.js'], 'angular2', 'prod')),
1181-
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2-testing.umd.js'],
1182-
'angular2-testing', 'dev'))
1179+
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2-all.umd.js'], 'angular2-all',
1180+
'dev')),
1181+
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2-all.umd.js'], 'angular2-all',
1182+
'prod')),
1183+
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2-all-testing.umd.js'],
1184+
'angular2-all-testing', 'dev'))
11831185
]);
11841186
});
11851187

@@ -1188,7 +1190,7 @@ gulp.task('bundles.js.umd.min', ['!bundles.js.umd', '!bundle.ng.polyfills'], fun
11881190
var uglify = require('gulp-uglify');
11891191

11901192
// minify production bundles
1191-
return gulp.src(['dist/js/bundle/angular2-polyfills.js', 'dist/js/bundle/angular2.umd.js'])
1193+
return gulp.src(['dist/js/bundle/angular2-polyfills.js', 'dist/js/bundle/angular2-all.umd.js'])
11921194
.pipe(uglify())
11931195
.pipe(rename({extname: '.min.js'}))
11941196
.pipe(gulp.dest('dist/js/bundle'));

modules/angular2/docs/bundles/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ ES5 users and AngularJS 1.x users interested in the `ngUpgrade` path can take ad
2929

3030
filename | list of barrels | dev/prod | minified?
3131
------------|-------------------|----------|-------------|--------------|-------------
32-
`angular2.umd.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade`| prod | no
33-
`angular2.umd.min.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade` | prod | yes
34-
`angular2.umd.dev.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade` | dev | no
35-
`angular2-testing.umd.dev.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade`, `angular2/testing`, `angular2/http/testing`, `angular2/router/testing` | dev | no
32+
`angular2-all.umd.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade`| prod | no
33+
`angular2-all.umd.min.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade` | prod | yes
34+
`angular2-all.umd.dev.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade` | dev | no
35+
`angular2-all-testing.umd.dev.js` | `angular2/core`, `angular2/common`, `angular2/compiler`, `angular2/platform/browser`, `angular2/platform/common_dom`, `angular2/http`, `angular2/router`, `angular2/instrumentation`, `angular2/upgrade`, `angular2/testing`, `angular2/http/testing`, `angular2/router/testing` | dev | no
3636

3737
**Warning**: bundles in the `UMD` format are _not_ "additive". A single application should use only one bundle from the above list.
3838

tools/build/webpack/angular2-testing.umd.js renamed to tools/build/webpack/angular2-all-testing.umd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports.router = require('angular2/router');
1212
exports.router_link_dsl = require('angular2/router/router_link_dsl.js');
1313
exports.instrumentation = require('angular2/instrumentation');
1414
exports.upgrade = require('angular2/upgrade');
15-
// this is the only difference as compared to the angular2.umd.js bundle
15+
// this is the only difference as compared to the angular2-all.umd.js bundle
1616
exports.testing = require('angular2/testing');
1717
exports.http.testing = require('angular2/http/testing');
1818
exports.router.testing = require('angular2/router/testing');

0 commit comments

Comments
 (0)
X Tutup