2017-06-02 12:43:52 -04:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2017-12-17 18:10:54 -05:00
|
|
|
exports_files([
|
2018-03-01 13:41:35 -05:00
|
|
|
"LICENSE",
|
2018-12-18 01:09:39 -05:00
|
|
|
"karma-js.conf.js",
|
|
|
|
"browser-providers.conf.js",
|
2020-03-10 01:17:48 -04:00
|
|
|
"scripts/ci/track-payload-size.sh",
|
|
|
|
"scripts/ci/payload-size.sh",
|
|
|
|
"scripts/ci/payload-size.js",
|
2020-03-17 07:58:17 -04:00
|
|
|
"package.json",
|
2017-12-17 18:10:54 -05:00
|
|
|
])
|
2017-06-02 12:43:52 -04:00
|
|
|
|
2019-04-02 14:42:58 -04:00
|
|
|
alias(
|
|
|
|
name = "tsconfig.json",
|
|
|
|
actual = "//packages:tsconfig-build.json",
|
|
|
|
)
|
|
|
|
|
2017-12-16 14:35:47 -05:00
|
|
|
filegroup(
|
2017-12-18 18:37:05 -05:00
|
|
|
name = "web_test_bootstrap_scripts",
|
2017-12-16 14:35:47 -05:00
|
|
|
# do not sort
|
|
|
|
srcs = [
|
2021-04-21 04:13:34 -04:00
|
|
|
"@npm//:node_modules/core-js-bundle/index.js",
|
feat(zone.js): upgrade zone.js to angular package format(APF) (#36540)
Close #35157
In the current version of zone.js, zone.js uses it's own package format, and it is not following the rule
of Angualr package format(APF), so it is not easily to be consumed by Angular CLI or other bundle tools.
For example, zone.js npm package has two bundles,
1. zone.js/dist/zone.js, this is a `es5` bundle.
2. zone.js/dist/zone-evergreen.js, this is a `es2015` bundle.
And Angular CLI has to add some hard-coding code to handle this case, ohttps://github.com/angular/angular-cli/blob/5376a8b1392ac7bd252782d8474161ce03a4d1cb/packages/schematics/angular/application/files/src/polyfills.ts.template#L55-L58
This PR upgrade zone.js npm package format to follow APF rule, https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx
The updated points are:
1. in package.json, update all bundle related properties
```
"main": "./bundles/zone.umd.js",
"module": "./fesm2015/zone.js",
"es2015": "./fesm2015/zone.js",
"fesm2015": "./fesm2015/zone.js",
```
2. re-organize dist folder, for example for `zone.js` bundle, now we have
```
dist/
bundles/
zone.js // this is the es5 bundle
fesm2015/
zone.js // this is the es2015 bundle (in the old version is `zone-evergreen.js`)
```
3. have several sub-packages.
1. `zone-testing`, provide zone-testing bundles include zone.js and testing libraries
2. `zone-node`, provide zone.js implemention for NodeJS
3. `zone-mix`, provide zone.js patches for both Browser and NodeJS
All those sub-packages will have their own `package.json` and the bundle will reference `bundles(es5)` and `fesm2015(es2015)`.
4. keep backward compatibility, still keep the `zone.js/dist` folder, and all bundles will be redirected to `zone.js/bundles` or `zone.js/fesm2015` folders.
PR Close #36540
2020-05-16 21:53:03 -04:00
|
|
|
"//packages/zone.js/bundles:zone.umd.js",
|
|
|
|
"//packages/zone.js/bundles:zone-testing.umd.js",
|
|
|
|
"//packages/zone.js/bundles:task-tracking.umd.js",
|
2018-06-04 17:58:23 -04:00
|
|
|
"//:test-events.js",
|
2020-06-17 08:34:41 -04:00
|
|
|
"//:third_party/shims_for_IE.js",
|
2018-12-18 01:09:39 -05:00
|
|
|
# Including systemjs because it defines `__eval`, which produces correct stack traces.
|
2019-06-19 00:26:53 -04:00
|
|
|
"@npm//:node_modules/systemjs/dist/system.src.js",
|
|
|
|
"@npm//:node_modules/reflect-metadata/Reflect.js",
|
2017-12-16 14:35:47 -05:00
|
|
|
],
|
|
|
|
)
|
2017-12-18 18:37:05 -05:00
|
|
|
|
|
|
|
filegroup(
|
2018-05-31 02:49:37 -04:00
|
|
|
name = "angularjs_scripts",
|
2017-12-18 18:37:05 -05:00
|
|
|
srcs = [
|
2020-07-14 13:44:07 -04:00
|
|
|
# We also declare the unminified AngularJS files since these can be used for
|
2018-12-17 12:28:06 -05:00
|
|
|
# local debugging (e.g. see: packages/upgrade/test/common/test_helpers.ts)
|
2019-06-19 00:26:53 -04:00
|
|
|
"@npm//:node_modules/angular-1.5/angular.js",
|
|
|
|
"@npm//:node_modules/angular-1.5/angular.min.js",
|
|
|
|
"@npm//:node_modules/angular-1.6/angular.js",
|
|
|
|
"@npm//:node_modules/angular-1.6/angular.min.js",
|
2020-12-04 09:53:12 -05:00
|
|
|
"@npm//:node_modules/angular-1.7/angular.js",
|
|
|
|
"@npm//:node_modules/angular-1.7/angular.min.js",
|
2019-06-19 00:26:53 -04:00
|
|
|
"@npm//:node_modules/angular-mocks-1.5/angular-mocks.js",
|
|
|
|
"@npm//:node_modules/angular-mocks-1.6/angular-mocks.js",
|
2020-12-04 09:53:12 -05:00
|
|
|
"@npm//:node_modules/angular-mocks-1.7/angular-mocks.js",
|
2021-07-06 09:29:19 -04:00
|
|
|
"@npm//:node_modules/angular-mocks-1.8/angular-mocks.js",
|
|
|
|
"@npm//:node_modules/angular-1.8/angular.js",
|
|
|
|
"@npm//:node_modules/angular-1.8/angular.min.js",
|
2017-12-18 18:37:05 -05:00
|
|
|
],
|
|
|
|
)
|
2020-06-25 04:32:41 -04:00
|
|
|
|
|
|
|
# Detect if the build is running under --stamp
|
|
|
|
config_setting(
|
|
|
|
name = "stamp",
|
|
|
|
values = {"stamp": "true"},
|
|
|
|
)
|