X Tutup
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,9 @@ gulp.task('!bundles.js.umd', ['build.js.dev'], function() {

return q.all([
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2.umd.js'], 'angular2', 'dev')),
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2.umd.js'], 'angular2', 'prod'))
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2.umd.js'], 'angular2', 'prod')),
webpack(webPackConf([__dirname + '/tools/build/webpack/angular2-testing.umd.js'],
'angular2-testing', 'dev'))
]);
});

Expand Down
15 changes: 15 additions & 0 deletions tools/build/webpack/angular2-testing.umd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// this bundle is almost identical to the angular2.umd.js
// the only difference being "testing" export
exports.core = require('angular2/core');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment that everything until the last line is same as angular2.umd.js, in case someone makes a change in only one of them.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

exports.common = require('angular2/common');
exports.platform = {
browser: require('angular2/platform/browser'),
common_dom: require('angular2/platform/common_dom')
};
exports.http = require('angular2/http');
exports.router = require('angular2/router');
exports.router_link_dsl = require('angular2/router/router_link_dsl.js');
exports.instrumentation = require('angular2/instrumentation');
exports.upgrade = require('angular2/upgrade');
// this is the only difference as compared to the angular2.umd.js bundle
exports.testing = require('angular2/testing');
X Tutup