From b199ef6bfc2c8519b1ab67e7bc32ee27c32b4f7c Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Tue, 9 Jun 2020 23:12:21 +0900 Subject: [PATCH] feat(zone.js): move all zone optional bundles to plugins folders (#36540) Zone.js has a lot of optional bundles, such as `zone-patch-message-port`, those bundles are monkey patch for specified APIs usually for soem experimental APIs or some old APIs only available for specified platforms. Those bundles will not be loaded by default. In this commit, since we have several main `sub packages` such as `zone`, `zone-node`, `zone-testing`, I put all the optional bundles under `plugins` folders for consistency. PR Close #36540 --- packages/zone.js/BUILD.bazel | 1 + packages/zone.js/plugins/BUILD.bazel | 63 +++++++++++++++ .../plugins/async-test.min/package.json | 7 ++ .../zone.js/plugins/async-test/package.json | 7 ++ .../plugins/fake-async-test.min/package.json | 7 ++ .../plugins/fake-async-test/package.json | 7 ++ .../plugins/jasmine-patch.min/package.json | 7 ++ .../plugins/jasmine-patch/package.json | 7 ++ .../long-stack-trace-zone.min/package.json | 7 ++ .../long-stack-trace-zone/package.json | 7 ++ .../plugins/mocha-patch.min/package.json | 7 ++ .../zone.js/plugins/mocha-patch/package.json | 7 ++ .../zone.js/plugins/proxy.min/package.json | 7 ++ packages/zone.js/plugins/proxy/package.json | 7 ++ .../plugins/sync-test.min/package.json | 7 ++ .../zone.js/plugins/sync-test/package.json | 7 ++ .../plugins/task-tracking.min/package.json | 7 ++ .../plugins/task-tracking/package.json | 7 ++ .../webapis-media-query.min/package.json | 7 ++ .../plugins/webapis-media-query/package.json | 7 ++ .../webapis-notification.min/package.json | 7 ++ .../plugins/webapis-notification/package.json | 7 ++ .../package.json | 7 ++ .../webapis-rtc-peer-connection/package.json | 7 ++ .../plugins/webapis-shadydom.min/package.json | 7 ++ .../plugins/webapis-shadydom/package.json | 7 ++ packages/zone.js/plugins/wtf.min/package.json | 7 ++ packages/zone.js/plugins/wtf/package.json | 7 ++ .../plugins/zone-bluebird.min/package.json | 7 ++ .../plugins/zone-bluebird/package.json | 7 ++ .../plugins/zone-error.min/package.json | 7 ++ .../zone.js/plugins/zone-error/package.json | 7 ++ .../plugins/zone-legacy.min/package.json | 7 ++ .../zone.js/plugins/zone-legacy/package.json | 7 ++ .../zone-patch-canvas.min/package.json | 7 ++ .../plugins/zone-patch-canvas/package.json | 7 ++ .../zone-patch-cordova.min/package.json | 7 ++ .../plugins/zone-patch-cordova/package.json | 7 ++ .../zone-patch-electron.min/package.json | 7 ++ .../plugins/zone-patch-electron/package.json | 7 ++ .../plugins/zone-patch-fetch.min/package.json | 7 ++ .../plugins/zone-patch-fetch/package.json | 7 ++ .../plugins/zone-patch-jsonp.min/package.json | 7 ++ .../plugins/zone-patch-jsonp/package.json | 7 ++ .../zone-patch-message-port.min/package.json | 7 ++ .../zone-patch-message-port/package.json | 7 ++ .../zone-patch-promise-test.min/package.json | 7 ++ .../zone-patch-promise-test/package.json | 7 ++ .../package.json | 7 ++ .../zone-patch-resize-observer/package.json | 7 ++ .../package.json | 7 ++ .../zone-patch-rxjs-fake-async/package.json | 7 ++ .../plugins/zone-patch-rxjs.min/package.json | 7 ++ .../plugins/zone-patch-rxjs/package.json | 7 ++ .../zone-patch-socket-io.min/package.json | 7 ++ .../plugins/zone-patch-socket-io/package.json | 7 ++ .../zone-patch-user-media.min/package.json | 7 ++ .../zone-patch-user-media/package.json | 7 ++ .../test/npm_package/npm_package.spec.ts | 81 +++++++++++++++++++ 59 files changed, 537 insertions(+) create mode 100644 packages/zone.js/plugins/BUILD.bazel create mode 100644 packages/zone.js/plugins/async-test.min/package.json create mode 100644 packages/zone.js/plugins/async-test/package.json create mode 100644 packages/zone.js/plugins/fake-async-test.min/package.json create mode 100644 packages/zone.js/plugins/fake-async-test/package.json create mode 100644 packages/zone.js/plugins/jasmine-patch.min/package.json create mode 100644 packages/zone.js/plugins/jasmine-patch/package.json create mode 100644 packages/zone.js/plugins/long-stack-trace-zone.min/package.json create mode 100644 packages/zone.js/plugins/long-stack-trace-zone/package.json create mode 100644 packages/zone.js/plugins/mocha-patch.min/package.json create mode 100644 packages/zone.js/plugins/mocha-patch/package.json create mode 100644 packages/zone.js/plugins/proxy.min/package.json create mode 100644 packages/zone.js/plugins/proxy/package.json create mode 100644 packages/zone.js/plugins/sync-test.min/package.json create mode 100644 packages/zone.js/plugins/sync-test/package.json create mode 100644 packages/zone.js/plugins/task-tracking.min/package.json create mode 100644 packages/zone.js/plugins/task-tracking/package.json create mode 100644 packages/zone.js/plugins/webapis-media-query.min/package.json create mode 100644 packages/zone.js/plugins/webapis-media-query/package.json create mode 100644 packages/zone.js/plugins/webapis-notification.min/package.json create mode 100644 packages/zone.js/plugins/webapis-notification/package.json create mode 100644 packages/zone.js/plugins/webapis-rtc-peer-connection.min/package.json create mode 100644 packages/zone.js/plugins/webapis-rtc-peer-connection/package.json create mode 100644 packages/zone.js/plugins/webapis-shadydom.min/package.json create mode 100644 packages/zone.js/plugins/webapis-shadydom/package.json create mode 100644 packages/zone.js/plugins/wtf.min/package.json create mode 100644 packages/zone.js/plugins/wtf/package.json create mode 100644 packages/zone.js/plugins/zone-bluebird.min/package.json create mode 100644 packages/zone.js/plugins/zone-bluebird/package.json create mode 100644 packages/zone.js/plugins/zone-error.min/package.json create mode 100644 packages/zone.js/plugins/zone-error/package.json create mode 100644 packages/zone.js/plugins/zone-legacy.min/package.json create mode 100644 packages/zone.js/plugins/zone-legacy/package.json create mode 100644 packages/zone.js/plugins/zone-patch-canvas.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-canvas/package.json create mode 100644 packages/zone.js/plugins/zone-patch-cordova.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-cordova/package.json create mode 100644 packages/zone.js/plugins/zone-patch-electron.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-electron/package.json create mode 100644 packages/zone.js/plugins/zone-patch-fetch.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-fetch/package.json create mode 100644 packages/zone.js/plugins/zone-patch-jsonp.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-jsonp/package.json create mode 100644 packages/zone.js/plugins/zone-patch-message-port.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-message-port/package.json create mode 100644 packages/zone.js/plugins/zone-patch-promise-test.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-promise-test/package.json create mode 100644 packages/zone.js/plugins/zone-patch-resize-observer.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-resize-observer/package.json create mode 100644 packages/zone.js/plugins/zone-patch-rxjs-fake-async.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-rxjs-fake-async/package.json create mode 100644 packages/zone.js/plugins/zone-patch-rxjs.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-rxjs/package.json create mode 100644 packages/zone.js/plugins/zone-patch-socket-io.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-socket-io/package.json create mode 100644 packages/zone.js/plugins/zone-patch-user-media.min/package.json create mode 100644 packages/zone.js/plugins/zone-patch-user-media/package.json diff --git a/packages/zone.js/BUILD.bazel b/packages/zone.js/BUILD.bazel index 176e95ff89..8e2ca289d9 100644 --- a/packages/zone.js/BUILD.bazel +++ b/packages/zone.js/BUILD.bazel @@ -82,6 +82,7 @@ pkg_npm( ":LICENSE_copy", ":zone_externs", "//packages/zone.js/dist:dist_bundle_group", + "//packages/zone.js/plugins:plugin_bundle_group", ] + [ "//packages/zone.js/bundles:" + b + "-es5.dist" for b in BUNDLES_ENTRY_POINTS.keys() diff --git a/packages/zone.js/plugins/BUILD.bazel b/packages/zone.js/plugins/BUILD.bazel new file mode 100644 index 0000000000..8c03c51d58 --- /dev/null +++ b/packages/zone.js/plugins/BUILD.bazel @@ -0,0 +1,63 @@ +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "plugin_bundle_group", + srcs = [ + "//packages/zone.js/plugins:async-test.min/package.json", + "//packages/zone.js/plugins:async-test/package.json", + "//packages/zone.js/plugins:fake-async-test.min/package.json", + "//packages/zone.js/plugins:fake-async-test/package.json", + "//packages/zone.js/plugins:jasmine-patch.min/package.json", + "//packages/zone.js/plugins:jasmine-patch/package.json", + "//packages/zone.js/plugins:long-stack-trace-zone.min/package.json", + "//packages/zone.js/plugins:long-stack-trace-zone/package.json", + "//packages/zone.js/plugins:mocha-patch.min/package.json", + "//packages/zone.js/plugins:mocha-patch/package.json", + "//packages/zone.js/plugins:proxy.min/package.json", + "//packages/zone.js/plugins:proxy/package.json", + "//packages/zone.js/plugins:sync-test.min/package.json", + "//packages/zone.js/plugins:sync-test/package.json", + "//packages/zone.js/plugins:task-tracking.min/package.json", + "//packages/zone.js/plugins:task-tracking/package.json", + "//packages/zone.js/plugins:webapis-media-query.min/package.json", + "//packages/zone.js/plugins:webapis-media-query/package.json", + "//packages/zone.js/plugins:webapis-notification.min/package.json", + "//packages/zone.js/plugins:webapis-notification/package.json", + "//packages/zone.js/plugins:webapis-rtc-peer-connection.min/package.json", + "//packages/zone.js/plugins:webapis-rtc-peer-connection/package.json", + "//packages/zone.js/plugins:webapis-shadydom.min/package.json", + "//packages/zone.js/plugins:webapis-shadydom/package.json", + "//packages/zone.js/plugins:wtf.min/package.json", + "//packages/zone.js/plugins:wtf/package.json", + "//packages/zone.js/plugins:zone-bluebird.min/package.json", + "//packages/zone.js/plugins:zone-bluebird/package.json", + "//packages/zone.js/plugins:zone-error.min/package.json", + "//packages/zone.js/plugins:zone-error/package.json", + "//packages/zone.js/plugins:zone-legacy.min/package.json", + "//packages/zone.js/plugins:zone-legacy/package.json", + "//packages/zone.js/plugins:zone-patch-canvas.min/package.json", + "//packages/zone.js/plugins:zone-patch-canvas/package.json", + "//packages/zone.js/plugins:zone-patch-cordova.min/package.json", + "//packages/zone.js/plugins:zone-patch-cordova/package.json", + "//packages/zone.js/plugins:zone-patch-electron.min/package.json", + "//packages/zone.js/plugins:zone-patch-electron/package.json", + "//packages/zone.js/plugins:zone-patch-fetch.min/package.json", + "//packages/zone.js/plugins:zone-patch-fetch/package.json", + "//packages/zone.js/plugins:zone-patch-jsonp.min/package.json", + "//packages/zone.js/plugins:zone-patch-jsonp/package.json", + "//packages/zone.js/plugins:zone-patch-message-port.min/package.json", + "//packages/zone.js/plugins:zone-patch-message-port/package.json", + "//packages/zone.js/plugins:zone-patch-promise-test.min/package.json", + "//packages/zone.js/plugins:zone-patch-promise-test/package.json", + "//packages/zone.js/plugins:zone-patch-resize-observer.min/package.json", + "//packages/zone.js/plugins:zone-patch-resize-observer/package.json", + "//packages/zone.js/plugins:zone-patch-rxjs.min/package.json", + "//packages/zone.js/plugins:zone-patch-rxjs-fake-async.min/package.json", + "//packages/zone.js/plugins:zone-patch-rxjs-fake-async/package.json", + "//packages/zone.js/plugins:zone-patch-rxjs/package.json", + "//packages/zone.js/plugins:zone-patch-socket-io.min/package.json", + "//packages/zone.js/plugins:zone-patch-socket-io/package.json", + "//packages/zone.js/plugins:zone-patch-user-media.min/package.json", + "//packages/zone.js/plugins:zone-patch-user-media/package.json", + ], +) diff --git a/packages/zone.js/plugins/async-test.min/package.json b/packages/zone.js/plugins/async-test.min/package.json new file mode 100644 index 0000000000..9928139106 --- /dev/null +++ b/packages/zone.js/plugins/async-test.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/async-test.min", + "main": "../../bundles/async-test.umd.min.js", + "fesm2015": "../../fesm2015/async-test.min.js", + "es2015": "../../fesm2015/async-test.min.js", + "module": "../../fesm2015/async-test.min.js" +} diff --git a/packages/zone.js/plugins/async-test/package.json b/packages/zone.js/plugins/async-test/package.json new file mode 100644 index 0000000000..c6dc4c07a1 --- /dev/null +++ b/packages/zone.js/plugins/async-test/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/async-test", + "main": "../../bundles/async-test.umd.js", + "fesm2015": "../../fesm2015/async-test.js", + "es2015": "../../fesm2015/async-test.js", + "module": "../../fesm2015/async-test.js" +} diff --git a/packages/zone.js/plugins/fake-async-test.min/package.json b/packages/zone.js/plugins/fake-async-test.min/package.json new file mode 100644 index 0000000000..df98ce6862 --- /dev/null +++ b/packages/zone.js/plugins/fake-async-test.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/fake-async-test.min", + "main": "../../bundles/fake-async-test.umd.min.js", + "fesm2015": "../../fesm2015/fake-async-test.min.js", + "es2015": "../../fesm2015/fake-async-test.min.js", + "module": "../../fesm2015/fake-async-test.min.js" +} diff --git a/packages/zone.js/plugins/fake-async-test/package.json b/packages/zone.js/plugins/fake-async-test/package.json new file mode 100644 index 0000000000..feab6e986c --- /dev/null +++ b/packages/zone.js/plugins/fake-async-test/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/fake-async-test", + "main": "../../bundles/fake-async-test.umd.js", + "fesm2015": "../../fesm2015/fake-async-test.js", + "es2015": "../../fesm2015/fake-async-test.js", + "module": "../../fesm2015/fake-async-test.js" +} diff --git a/packages/zone.js/plugins/jasmine-patch.min/package.json b/packages/zone.js/plugins/jasmine-patch.min/package.json new file mode 100644 index 0000000000..2577835c8a --- /dev/null +++ b/packages/zone.js/plugins/jasmine-patch.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/jasmine-patch.min", + "main": "../../bundles/jasmine-patch.umd.min.js", + "fesm2015": "../../fesm2015/jasmine-patch.min.js", + "es2015": "../../fesm2015/jasmine-patch.min.js", + "module": "../../fesm2015/jasmine-patch.min.js" +} diff --git a/packages/zone.js/plugins/jasmine-patch/package.json b/packages/zone.js/plugins/jasmine-patch/package.json new file mode 100644 index 0000000000..85a712b812 --- /dev/null +++ b/packages/zone.js/plugins/jasmine-patch/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/jasmine-patch", + "main": "../../bundles/jasmine-patch.umd.js", + "fesm2015": "../../fesm2015/jasmine-patch.js", + "es2015": "../../fesm2015/jasmine-patch.js", + "module": "../../fesm2015/jasmine-patch.js" +} diff --git a/packages/zone.js/plugins/long-stack-trace-zone.min/package.json b/packages/zone.js/plugins/long-stack-trace-zone.min/package.json new file mode 100644 index 0000000000..fbd117c105 --- /dev/null +++ b/packages/zone.js/plugins/long-stack-trace-zone.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/long-stack-trace-zone.min", + "main": "../../bundles/long-stack-trace-zone.umd.min.js", + "fesm2015": "../../fesm2015/long-stack-trace-zone.min.js", + "es2015": "../../fesm2015/long-stack-trace-zone.min.js", + "module": "../../fesm2015/long-stack-trace-zone.min.js" +} diff --git a/packages/zone.js/plugins/long-stack-trace-zone/package.json b/packages/zone.js/plugins/long-stack-trace-zone/package.json new file mode 100644 index 0000000000..e3038e1f71 --- /dev/null +++ b/packages/zone.js/plugins/long-stack-trace-zone/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/long-stack-trace-zone", + "main": "../../bundles/long-stack-trace-zone.umd.js", + "fesm2015": "../../fesm2015/long-stack-trace-zone.js", + "es2015": "../../fesm2015/long-stack-trace-zone.js", + "module": "../../fesm2015/long-stack-trace-zone.js" +} diff --git a/packages/zone.js/plugins/mocha-patch.min/package.json b/packages/zone.js/plugins/mocha-patch.min/package.json new file mode 100644 index 0000000000..056fea4c86 --- /dev/null +++ b/packages/zone.js/plugins/mocha-patch.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/mocha-patch.min", + "main": "../../bundles/mocha-patch.umd.min.js", + "fesm2015": "../../fesm2015/mocha-patch.min.js", + "es2015": "../../fesm2015/mocha-patch.min.js", + "module": "../../fesm2015/mocha-patch.min.js" +} diff --git a/packages/zone.js/plugins/mocha-patch/package.json b/packages/zone.js/plugins/mocha-patch/package.json new file mode 100644 index 0000000000..d88ff07228 --- /dev/null +++ b/packages/zone.js/plugins/mocha-patch/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/mocha-patch", + "main": "../../bundles/mocha-patch.umd.js", + "fesm2015": "../../fesm2015/mocha-patch.js", + "es2015": "../../fesm2015/mocha-patch.js", + "module": "../../fesm2015/mocha-patch.js" +} diff --git a/packages/zone.js/plugins/proxy.min/package.json b/packages/zone.js/plugins/proxy.min/package.json new file mode 100644 index 0000000000..3c8b4eced0 --- /dev/null +++ b/packages/zone.js/plugins/proxy.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/proxy.min", + "main": "../../bundles/proxy.umd.min.js", + "fesm2015": "../../fesm2015/proxy.min.js", + "es2015": "../../fesm2015/proxy.min.js", + "module": "../../fesm2015/proxy.min.js" +} diff --git a/packages/zone.js/plugins/proxy/package.json b/packages/zone.js/plugins/proxy/package.json new file mode 100644 index 0000000000..26c3b0921e --- /dev/null +++ b/packages/zone.js/plugins/proxy/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/proxy", + "main": "../../bundles/proxy.umd.js", + "fesm2015": "../../fesm2015/proxy.js", + "es2015": "../../fesm2015/proxy.js", + "module": "../../fesm2015/proxy.js" +} diff --git a/packages/zone.js/plugins/sync-test.min/package.json b/packages/zone.js/plugins/sync-test.min/package.json new file mode 100644 index 0000000000..47a668f4e3 --- /dev/null +++ b/packages/zone.js/plugins/sync-test.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/sync-test.min", + "main": "../../bundles/sync-test.umd.min.js", + "fesm2015": "../../fesm2015/sync-test.min.js", + "es2015": "../../fesm2015/sync-test.min.js", + "module": "../../fesm2015/sync-test.min.js" +} diff --git a/packages/zone.js/plugins/sync-test/package.json b/packages/zone.js/plugins/sync-test/package.json new file mode 100644 index 0000000000..31c7a125f6 --- /dev/null +++ b/packages/zone.js/plugins/sync-test/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/sync-test", + "main": "../../bundles/sync-test.umd.js", + "fesm2015": "../../fesm2015/sync-test.js", + "es2015": "../../fesm2015/sync-test.js", + "module": "../../fesm2015/sync-test.js" +} diff --git a/packages/zone.js/plugins/task-tracking.min/package.json b/packages/zone.js/plugins/task-tracking.min/package.json new file mode 100644 index 0000000000..d9247baf2b --- /dev/null +++ b/packages/zone.js/plugins/task-tracking.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/task-tracking.min", + "main": "../../bundles/task-tracking.umd.min.js", + "fesm2015": "../../fesm2015/task-tracking.min.js", + "es2015": "../../fesm2015/task-tracking.min.js", + "module": "../../fesm2015/task-tracking.min.js" +} diff --git a/packages/zone.js/plugins/task-tracking/package.json b/packages/zone.js/plugins/task-tracking/package.json new file mode 100644 index 0000000000..dbf8ace6bf --- /dev/null +++ b/packages/zone.js/plugins/task-tracking/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/task-tracking", + "main": "../../bundles/task-tracking.umd.js", + "fesm2015": "../../fesm2015/task-tracking.js", + "es2015": "../../fesm2015/task-tracking.js", + "module": "../../fesm2015/task-tracking.js" +} diff --git a/packages/zone.js/plugins/webapis-media-query.min/package.json b/packages/zone.js/plugins/webapis-media-query.min/package.json new file mode 100644 index 0000000000..b512baa663 --- /dev/null +++ b/packages/zone.js/plugins/webapis-media-query.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-media-query.min", + "main": "../../bundles/webapis-media-query.umd.min.js", + "fesm2015": "../../fesm2015/webapis-media-query.min.js", + "es2015": "../../fesm2015/webapis-media-query.min.js", + "module": "../../fesm2015/webapis-media-query.min.js" +} diff --git a/packages/zone.js/plugins/webapis-media-query/package.json b/packages/zone.js/plugins/webapis-media-query/package.json new file mode 100644 index 0000000000..00383a1420 --- /dev/null +++ b/packages/zone.js/plugins/webapis-media-query/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-media-query", + "main": "../../bundles/webapis-media-query.umd.js", + "fesm2015": "../../fesm2015/webapis-media-query.js", + "es2015": "../../fesm2015/webapis-media-query.js", + "module": "../../fesm2015/webapis-media-query.js" +} diff --git a/packages/zone.js/plugins/webapis-notification.min/package.json b/packages/zone.js/plugins/webapis-notification.min/package.json new file mode 100644 index 0000000000..34b7a46fe3 --- /dev/null +++ b/packages/zone.js/plugins/webapis-notification.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-notification.min", + "main": "../../bundles/webapis-notification.umd.min.js", + "fesm2015": "../../fesm2015/webapis-notification.min.js", + "es2015": "../../fesm2015/webapis-notification.min.js", + "module": "../../fesm2015/webapis-notification.min.js" +} diff --git a/packages/zone.js/plugins/webapis-notification/package.json b/packages/zone.js/plugins/webapis-notification/package.json new file mode 100644 index 0000000000..69f50f2192 --- /dev/null +++ b/packages/zone.js/plugins/webapis-notification/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-notification", + "main": "../../bundles/webapis-notification.umd.js", + "fesm2015": "../../fesm2015/webapis-notification.js", + "es2015": "../../fesm2015/webapis-notification.js", + "module": "../../fesm2015/webapis-notification.js" +} diff --git a/packages/zone.js/plugins/webapis-rtc-peer-connection.min/package.json b/packages/zone.js/plugins/webapis-rtc-peer-connection.min/package.json new file mode 100644 index 0000000000..6cee513b35 --- /dev/null +++ b/packages/zone.js/plugins/webapis-rtc-peer-connection.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-rtc-peer-connection.min", + "main": "../../bundles/webapis-rtc-peer-connection.umd.min.js", + "fesm2015": "../../fesm2015/webapis-rtc-peer-connection.min.js", + "es2015": "../../fesm2015/webapis-rtc-peer-connection.min.js", + "module": "../../fesm2015/webapis-rtc-peer-connection.min.js" +} diff --git a/packages/zone.js/plugins/webapis-rtc-peer-connection/package.json b/packages/zone.js/plugins/webapis-rtc-peer-connection/package.json new file mode 100644 index 0000000000..187857fc3f --- /dev/null +++ b/packages/zone.js/plugins/webapis-rtc-peer-connection/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-rtc-peer-connection", + "main": "../../bundles/webapis-rtc-peer-connection.umd.js", + "fesm2015": "../../fesm2015/webapis-rtc-peer-connection.js", + "es2015": "../../fesm2015/webapis-rtc-peer-connection.js", + "module": "../../fesm2015/webapis-rtc-peer-connection.js" +} diff --git a/packages/zone.js/plugins/webapis-shadydom.min/package.json b/packages/zone.js/plugins/webapis-shadydom.min/package.json new file mode 100644 index 0000000000..c0f63f629d --- /dev/null +++ b/packages/zone.js/plugins/webapis-shadydom.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-shadydom.min", + "main": "../../bundles/webapis-shadydom.umd.min.js", + "fesm2015": "../../fesm2015/webapis-shadydom.min.js", + "es2015": "../../fesm2015/webapis-shadydom.min.js", + "module": "../../fesm2015/webapis-shadydom.min.js" +} diff --git a/packages/zone.js/plugins/webapis-shadydom/package.json b/packages/zone.js/plugins/webapis-shadydom/package.json new file mode 100644 index 0000000000..094020cfb1 --- /dev/null +++ b/packages/zone.js/plugins/webapis-shadydom/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/webapis-shadydom", + "main": "../../bundles/webapis-shadydom.umd.js", + "fesm2015": "../../fesm2015/webapis-shadydom.js", + "es2015": "../../fesm2015/webapis-shadydom.js", + "module": "../../fesm2015/webapis-shadydom.js" +} diff --git a/packages/zone.js/plugins/wtf.min/package.json b/packages/zone.js/plugins/wtf.min/package.json new file mode 100644 index 0000000000..0cd382df4b --- /dev/null +++ b/packages/zone.js/plugins/wtf.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/wtf.min", + "main": "../../bundles/wtf.umd.min.js", + "fesm2015": "../../fesm2015/wtf.min.js", + "es2015": "../../fesm2015/wtf.min.js", + "module": "../../fesm2015/wtf.min.js" +} diff --git a/packages/zone.js/plugins/wtf/package.json b/packages/zone.js/plugins/wtf/package.json new file mode 100644 index 0000000000..30a38fa85f --- /dev/null +++ b/packages/zone.js/plugins/wtf/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/wtf", + "main": "../../bundles/wtf.umd.js", + "fesm2015": "../../fesm2015/wtf.js", + "es2015": "../../fesm2015/wtf.js", + "module": "../../fesm2015/wtf.js" +} diff --git a/packages/zone.js/plugins/zone-bluebird.min/package.json b/packages/zone.js/plugins/zone-bluebird.min/package.json new file mode 100644 index 0000000000..4893934a86 --- /dev/null +++ b/packages/zone.js/plugins/zone-bluebird.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-bluebird.min", + "main": "../../bundles/zone-bluebird.umd.min.js", + "fesm2015": "../../fesm2015/zone-bluebird.min.js", + "es2015": "../../fesm2015/zone-bluebird.min.js", + "module": "../../fesm2015/zone-bluebird.min.js" +} diff --git a/packages/zone.js/plugins/zone-bluebird/package.json b/packages/zone.js/plugins/zone-bluebird/package.json new file mode 100644 index 0000000000..cbe50f384c --- /dev/null +++ b/packages/zone.js/plugins/zone-bluebird/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-bluebird", + "main": "../../bundles/zone-bluebird.umd.js", + "fesm2015": "../../fesm2015/zone-bluebird.js", + "es2015": "../../fesm2015/zone-bluebird.js", + "module": "../../fesm2015/zone-bluebird.js" +} diff --git a/packages/zone.js/plugins/zone-error.min/package.json b/packages/zone.js/plugins/zone-error.min/package.json new file mode 100644 index 0000000000..3ab27961e1 --- /dev/null +++ b/packages/zone.js/plugins/zone-error.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-error.min", + "main": "../../bundles/zone-error.umd.min.js", + "fesm2015": "../../fesm2015/zone-error.min.js", + "es2015": "../../fesm2015/zone-error.min.js", + "module": "../../fesm2015/zone-error.min.js" +} diff --git a/packages/zone.js/plugins/zone-error/package.json b/packages/zone.js/plugins/zone-error/package.json new file mode 100644 index 0000000000..c493ca1cee --- /dev/null +++ b/packages/zone.js/plugins/zone-error/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-error", + "main": "../../bundles/zone-error.umd.js", + "fesm2015": "../../fesm2015/zone-error.js", + "es2015": "../../fesm2015/zone-error.js", + "module": "../../fesm2015/zone-error.js" +} diff --git a/packages/zone.js/plugins/zone-legacy.min/package.json b/packages/zone.js/plugins/zone-legacy.min/package.json new file mode 100644 index 0000000000..f0f2739db9 --- /dev/null +++ b/packages/zone.js/plugins/zone-legacy.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-legacy.min", + "main": "../../bundles/zone-legacy.umd.min.js", + "fesm2015": "../../fesm2015/zone-legacy.min.js", + "es2015": "../../fesm2015/zone-legacy.min.js", + "module": "../../fesm2015/zone-legacy.min.js" +} diff --git a/packages/zone.js/plugins/zone-legacy/package.json b/packages/zone.js/plugins/zone-legacy/package.json new file mode 100644 index 0000000000..b87125f159 --- /dev/null +++ b/packages/zone.js/plugins/zone-legacy/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-legacy", + "main": "../../bundles/zone-legacy.umd.js", + "fesm2015": "../../fesm2015/zone-legacy.js", + "es2015": "../../fesm2015/zone-legacy.js", + "module": "../../fesm2015/zone-legacy.js" +} diff --git a/packages/zone.js/plugins/zone-patch-canvas.min/package.json b/packages/zone.js/plugins/zone-patch-canvas.min/package.json new file mode 100644 index 0000000000..9b0501c8ec --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-canvas.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-canvas.min", + "main": "../../bundles/zone-patch-canvas.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-canvas.min.js", + "es2015": "../../fesm2015/zone-patch-canvas.min.js", + "module": "../../fesm2015/zone-patch-canvas.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-canvas/package.json b/packages/zone.js/plugins/zone-patch-canvas/package.json new file mode 100644 index 0000000000..5f95609908 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-canvas/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-canvas", + "main": "../../bundles/zone-patch-canvas.umd.js", + "fesm2015": "../../fesm2015/zone-patch-canvas.js", + "es2015": "../../fesm2015/zone-patch-canvas.js", + "module": "../../fesm2015/zone-patch-canvas.js" +} diff --git a/packages/zone.js/plugins/zone-patch-cordova.min/package.json b/packages/zone.js/plugins/zone-patch-cordova.min/package.json new file mode 100644 index 0000000000..0dbbf3aa66 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-cordova.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-cordova.min", + "main": "../../bundles/zone-patch-cordova.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-cordova.min.js", + "es2015": "../../fesm2015/zone-patch-cordova.min.js", + "module": "../../fesm2015/zone-patch-cordova.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-cordova/package.json b/packages/zone.js/plugins/zone-patch-cordova/package.json new file mode 100644 index 0000000000..c4303225fd --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-cordova/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-cordova", + "main": "../../bundles/zone-patch-cordova.umd.js", + "fesm2015": "../../fesm2015/zone-patch-cordova.js", + "es2015": "../../fesm2015/zone-patch-cordova.js", + "module": "../../fesm2015/zone-patch-cordova.js" +} diff --git a/packages/zone.js/plugins/zone-patch-electron.min/package.json b/packages/zone.js/plugins/zone-patch-electron.min/package.json new file mode 100644 index 0000000000..c50d2f986b --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-electron.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-electron.min", + "main": "../../bundles/zone-patch-electron.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-electron.min.js", + "es2015": "../../fesm2015/zone-patch-electron.min.js", + "module": "../../fesm2015/zone-patch-electron.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-electron/package.json b/packages/zone.js/plugins/zone-patch-electron/package.json new file mode 100644 index 0000000000..157e823c00 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-electron/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-electron", + "main": "../../bundles/zone-patch-electron.umd.js", + "fesm2015": "../../fesm2015/zone-patch-electron.js", + "es2015": "../../fesm2015/zone-patch-electron.js", + "module": "../../fesm2015/zone-patch-electron.js" +} diff --git a/packages/zone.js/plugins/zone-patch-fetch.min/package.json b/packages/zone.js/plugins/zone-patch-fetch.min/package.json new file mode 100644 index 0000000000..5aa46814bb --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-fetch.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-fetch.min", + "main": "../../bundles/zone-patch-fetch.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-fetch.min.js", + "es2015": "../../fesm2015/zone-patch-fetch.min.js", + "module": "../../fesm2015/zone-patch-fetch.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-fetch/package.json b/packages/zone.js/plugins/zone-patch-fetch/package.json new file mode 100644 index 0000000000..2b902bc5a1 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-fetch/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-fetch", + "main": "../../bundles/zone-patch-fetch.umd.js", + "fesm2015": "../../fesm2015/zone-patch-fetch.js", + "es2015": "../../fesm2015/zone-patch-fetch.js", + "module": "../../fesm2015/zone-patch-fetch.js" +} diff --git a/packages/zone.js/plugins/zone-patch-jsonp.min/package.json b/packages/zone.js/plugins/zone-patch-jsonp.min/package.json new file mode 100644 index 0000000000..9e274dc71b --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-jsonp.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-jsonp.min", + "main": "../../bundles/zone-patch-jsonp.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-jsonp.min.js", + "es2015": "../../fesm2015/zone-patch-jsonp.min.js", + "module": "../../fesm2015/zone-patch-jsonp.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-jsonp/package.json b/packages/zone.js/plugins/zone-patch-jsonp/package.json new file mode 100644 index 0000000000..426a0da45b --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-jsonp/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-jsonp", + "main": "../../bundles/zone-patch-jsonp.umd.js", + "fesm2015": "../../fesm2015/zone-patch-jsonp.js", + "es2015": "../../fesm2015/zone-patch-jsonp.js", + "module": "../../fesm2015/zone-patch-jsonp.js" +} diff --git a/packages/zone.js/plugins/zone-patch-message-port.min/package.json b/packages/zone.js/plugins/zone-patch-message-port.min/package.json new file mode 100644 index 0000000000..c1e4a3a2ca --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-message-port.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-message-port.min", + "main": "../../bundles/zone-patch-message-port.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-message-port.min.js", + "es2015": "../../fesm2015/zone-patch-message-port.min.js", + "module": "../../fesm2015/zone-patch-message-port.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-message-port/package.json b/packages/zone.js/plugins/zone-patch-message-port/package.json new file mode 100644 index 0000000000..3b3ce6317c --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-message-port/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-message-port", + "main": "../../bundles/zone-patch-message-port.umd.js", + "fesm2015": "../../fesm2015/zone-patch-message-port.js", + "es2015": "../../fesm2015/zone-patch-message-port.js", + "module": "../../fesm2015/zone-patch-message-port.js" +} diff --git a/packages/zone.js/plugins/zone-patch-promise-test.min/package.json b/packages/zone.js/plugins/zone-patch-promise-test.min/package.json new file mode 100644 index 0000000000..30b94a2414 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-promise-test.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-promise-test.min", + "main": "../../bundles/zone-patch-promise-test.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-promise-test.min.js", + "es2015": "../../fesm2015/zone-patch-promise-test.min.js", + "module": "../../fesm2015/zone-patch-promise-test.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-promise-test/package.json b/packages/zone.js/plugins/zone-patch-promise-test/package.json new file mode 100644 index 0000000000..8b9bd469ee --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-promise-test/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-promise-test", + "main": "../../bundles/zone-patch-promise-test.umd.js", + "fesm2015": "../../fesm2015/zone-patch-promise-test.js", + "es2015": "../../fesm2015/zone-patch-promise-test.js", + "module": "../../fesm2015/zone-patch-promise-test.js" +} diff --git a/packages/zone.js/plugins/zone-patch-resize-observer.min/package.json b/packages/zone.js/plugins/zone-patch-resize-observer.min/package.json new file mode 100644 index 0000000000..bc8b6a9389 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-resize-observer.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-resize-observer.min", + "main": "../../bundles/zone-patch-resize-observer.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-resize-observer.min.js", + "es2015": "../../fesm2015/zone-patch-resize-observer.min.js", + "module": "../../fesm2015/zone-patch-resize-observer.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-resize-observer/package.json b/packages/zone.js/plugins/zone-patch-resize-observer/package.json new file mode 100644 index 0000000000..dece1df10a --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-resize-observer/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-resize-observer", + "main": "../../bundles/zone-patch-resize-observer.umd.js", + "fesm2015": "../../fesm2015/zone-patch-resize-observer.js", + "es2015": "../../fesm2015/zone-patch-resize-observer.js", + "module": "../../fesm2015/zone-patch-resize-observer.js" +} diff --git a/packages/zone.js/plugins/zone-patch-rxjs-fake-async.min/package.json b/packages/zone.js/plugins/zone-patch-rxjs-fake-async.min/package.json new file mode 100644 index 0000000000..e8e2c0f78d --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-rxjs-fake-async.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-rxjs-fake-async.min", + "main": "../../bundles/zone-patch-rxjs-fake-async.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-rxjs-fake-async.min.js", + "es2015": "../../fesm2015/zone-patch-rxjs-fake-async.min.js", + "module": "../../fesm2015/zone-patch-rxjs-fake-async.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-rxjs-fake-async/package.json b/packages/zone.js/plugins/zone-patch-rxjs-fake-async/package.json new file mode 100644 index 0000000000..5384663123 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-rxjs-fake-async/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-rxjs-fake-async", + "main": "../../bundles/zone-patch-rxjs-fake-async.umd.js", + "fesm2015": "../../fesm2015/zone-patch-rxjs-fake-async.js", + "es2015": "../../fesm2015/zone-patch-rxjs-fake-async.js", + "module": "../../fesm2015/zone-patch-rxjs-fake-async.js" +} diff --git a/packages/zone.js/plugins/zone-patch-rxjs.min/package.json b/packages/zone.js/plugins/zone-patch-rxjs.min/package.json new file mode 100644 index 0000000000..fefe72012f --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-rxjs.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-rxjs.min", + "main": "../../bundles/zone-patch-rxjs.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-rxjs.min.js", + "es2015": "../../fesm2015/zone-patch-rxjs.min.js", + "module": "../../fesm2015/zone-patch-rxjs.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-rxjs/package.json b/packages/zone.js/plugins/zone-patch-rxjs/package.json new file mode 100644 index 0000000000..4529cc020b --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-rxjs/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-rxjs", + "main": "../../bundles/zone-patch-rxjs.umd.js", + "fesm2015": "../../fesm2015/zone-patch-rxjs.js", + "es2015": "../../fesm2015/zone-patch-rxjs.js", + "module": "../../fesm2015/zone-patch-rxjs.js" +} diff --git a/packages/zone.js/plugins/zone-patch-socket-io.min/package.json b/packages/zone.js/plugins/zone-patch-socket-io.min/package.json new file mode 100644 index 0000000000..811eb64228 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-socket-io.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-socket-io.min", + "main": "../../bundles/zone-patch-socket-io.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-socket-io.min.js", + "es2015": "../../fesm2015/zone-patch-socket-io.min.js", + "module": "../../fesm2015/zone-patch-socket-io.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-socket-io/package.json b/packages/zone.js/plugins/zone-patch-socket-io/package.json new file mode 100644 index 0000000000..aa65a90fc1 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-socket-io/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-socket-io", + "main": "../../bundles/zone-patch-socket-io.umd.js", + "fesm2015": "../../fesm2015/zone-patch-socket-io.js", + "es2015": "../../fesm2015/zone-patch-socket-io.js", + "module": "../../fesm2015/zone-patch-socket-io.js" +} diff --git a/packages/zone.js/plugins/zone-patch-user-media.min/package.json b/packages/zone.js/plugins/zone-patch-user-media.min/package.json new file mode 100644 index 0000000000..4df7663d24 --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-user-media.min/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-user-media.min", + "main": "../../bundles/zone-patch-user-media.umd.min.js", + "fesm2015": "../../fesm2015/zone-patch-user-media.min.js", + "es2015": "../../fesm2015/zone-patch-user-media.min.js", + "module": "../../fesm2015/zone-patch-user-media.min.js" +} diff --git a/packages/zone.js/plugins/zone-patch-user-media/package.json b/packages/zone.js/plugins/zone-patch-user-media/package.json new file mode 100644 index 0000000000..a0a8849a9e --- /dev/null +++ b/packages/zone.js/plugins/zone-patch-user-media/package.json @@ -0,0 +1,7 @@ +{ + "name": "zone.js/zone-patch-user-media", + "main": "../../bundles/zone-patch-user-media.umd.js", + "fesm2015": "../../fesm2015/zone-patch-user-media.js", + "es2015": "../../fesm2015/zone-patch-user-media.js", + "module": "../../fesm2015/zone-patch-user-media.js" +} diff --git a/packages/zone.js/test/npm_package/npm_package.spec.ts b/packages/zone.js/test/npm_package/npm_package.spec.ts index bde0dbca84..0305915600 100644 --- a/packages/zone.js/test/npm_package/npm_package.spec.ts +++ b/packages/zone.js/test/npm_package/npm_package.spec.ts @@ -103,6 +103,87 @@ describe('Zone.js npm_package', () => { }); }); + + describe('plugins folder check', () => { + it('should contain all plugin folders in ./plugins', () => { + const expected = [ + 'async-test', + 'async-test.min', + 'fake-async-test', + 'fake-async-test.min', + 'jasmine-patch', + 'jasmine-patch.min', + 'long-stack-trace-zone', + 'long-stack-trace-zone.min', + 'mocha-patch', + 'mocha-patch.min', + 'proxy', + 'proxy.min', + 'sync-test', + 'sync-test.min', + 'task-tracking', + 'task-tracking.min', + 'webapis-media-query', + 'webapis-media-query.min', + 'webapis-notification', + 'webapis-notification.min', + 'webapis-rtc-peer-connection', + 'webapis-rtc-peer-connection.min', + 'webapis-shadydom', + 'webapis-shadydom.min', + 'wtf', + 'wtf.min', + 'zone-bluebird', + 'zone-bluebird.min', + 'zone-error', + 'zone-error.min', + 'zone-legacy', + 'zone-legacy.min', + 'zone-patch-canvas', + 'zone-patch-canvas.min', + 'zone-patch-cordova', + 'zone-patch-cordova.min', + 'zone-patch-electron', + 'zone-patch-electron.min', + 'zone-patch-fetch', + 'zone-patch-fetch.min', + 'zone-patch-jsonp', + 'zone-patch-jsonp.min', + 'zone-patch-message-port', + 'zone-patch-message-port.min', + 'zone-patch-promise-test', + 'zone-patch-promise-test.min', + 'zone-patch-resize-observer', + 'zone-patch-resize-observer.min', + 'zone-patch-rxjs-fake-async', + 'zone-patch-rxjs-fake-async.min', + 'zone-patch-rxjs', + 'zone-patch-rxjs.min', + 'zone-patch-socket-io', + 'zone-patch-socket-io.min', + 'zone-patch-user-media', + 'zone-patch-user-media.min', + ].sort(); + + checkInSubFolder('./plugins', () => { + const list = shx.ls('./').stdout.split('\n').sort().slice(1); + expect(list.length).toBe(expected.length); + for (let i = 0; i < list.length; i++) { + expect(list[i]).toEqual(expected[i]); + const packageJson = shx.cat(`${list[i]}/package.json`); + const umdMinName = list[i].indexOf('.min') === -1 ? + `${list[i]}.umd` : + `${list[i].substring(0, list[i].indexOf('.min'))}.umd.min`; + expect(packageJson).toContain(`"name": "zone.js/${list[i]}"`); + expect(packageJson).toContain(`"main": "../../bundles/${umdMinName}.js"`); + expect(packageJson).toContain(`"fesm2015": "../../fesm2015/${list[i]}.js"`); + expect(packageJson).toContain(`"es2015": "../../fesm2015/${list[i]}.js"`); + expect(packageJson).toContain(`"module": "../../fesm2015/${list[i]}.js"`); + } + }); + }); + }); + describe('dist file list', () => { it('should contain all files', () => { const expected = [