feat(bundles): add angular-testing UMD bundle
Closes #5581 Closes #5734
This commit is contained in:
parent
61e8b60506
commit
d6d759d722
|
@ -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'))
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
|
@ -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');
|
||||
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');
|
Loading…
Reference in New Issue