diff --git a/gulpfile.js b/gulpfile.js index 4787bdd1b7..8d6bc0feb9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')) ]); }); diff --git a/tools/build/webpack/angular2-testing.umd.js b/tools/build/webpack/angular2-testing.umd.js new file mode 100644 index 0000000000..2be040bf4b --- /dev/null +++ b/tools/build/webpack/angular2-testing.umd.js @@ -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');