Files
angular__angular/packages.bzl
T
Jeremy Elbourn 5fb022f2b3 chore: update master to angular version 8 beta (#15392)
This allows us to cherry-pick @kara's static query updates from the
`ivy-2019` branch.

This change includes:
* Adding missing dependencies for various Angular subpackages
* Add umd assets where they are now necessary
* Configure bazel to target ES5 output as a workaround for https://github.com/angular/angular/issues/29107
* Updates most npm dependencies to the @npm// workspace
* Updates general workspace setup, RBE config, ngcontainer
* Update to rxjs 6.4.0 (building from source no longer needed)
* Added rxjs_shims for ts_web_test and ts_devserver targets
* Removed index.bzl and angular_material_setup_workspace (not needed anymore since material won't be built from source)
* Use browser_repositories() from @npm_bazel_karma which have pinned browsers that work on all platforms
* Change dgeni processor functions from arrow function to `function` to
work around `@npm//di` not supporting arrow functions

Co-authored-by: Greg Magolan <gmagolan@gmail.com>
2019-03-06 15:16:47 -08:00

133 lines
3.9 KiB
Python

# List of all components / subpackages.
CDK_PACKAGES = [
"a11y",
"accordion",
"bidi",
"coercion",
"collections",
"drag-drop",
"keycodes",
"layout",
"observers",
"overlay",
"platform",
"portal",
"scrolling",
"stepper",
"table",
"text-field",
"tree",
]
CDK_TARGETS = ["//src/cdk"] + ["//src/cdk/%s" % p for p in CDK_PACKAGES]
CDK_EXPERIMENTAL_PACKAGES = [
"dialog",
"scrolling",
]
CDK_EXPERIMENTAL_TARGETS = ["//src/cdk-experimental"] + [
"//src/cdk-experimental/%s" % p for p in CDK_EXPERIMENTAL_PACKAGES
]
MATERIAL_PACKAGES = [
"autocomplete",
"badge",
"bottom-sheet",
"button",
"button-toggle",
"card",
"checkbox",
"chips",
"core",
"datepicker",
"dialog",
"divider",
"expansion",
"form-field",
"grid-list",
"icon",
"input",
"list",
"menu",
"paginator",
"progress-bar",
"progress-spinner",
"radio",
"select",
"sidenav",
"slide-toggle",
"slider",
"snack-bar",
"sort",
"stepper",
"table",
"tabs",
"toolbar",
"tooltip",
"tree",
]
MATERIAL_TARGETS = ["//src/lib:material"] + ["//src/lib/%s" % p for p in MATERIAL_PACKAGES]
# List that references the sass libraries for each Material package. This can be used to create
# the theming scss-bundle or to specify dependencies for the all-theme.scss file.
MATERIAL_SCSS_LIBS = [
"//src/lib/%s:%s_scss_lib" % (p, p.replace('-', '_')) for p in MATERIAL_PACKAGES
]
# Each individual package uses a placeholder for the version of Angular to ensure they're
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
# version for the placeholders.
ANGULAR_PACKAGE_VERSION = ">=6.0.0-beta.0 <7.0.0"
VERSION_PLACEHOLDER_REPLACEMENTS = {
"0.0.0-NG": ANGULAR_PACKAGE_VERSION,
}
# Base rollup globals for everything in the repo.
ROLLUP_GLOBALS = {
'tslib': 'tslib',
'moment': 'moment',
'@angular/cdk': 'ng.cdk',
'@angular/cdk-experimental': 'ng.cdkExperimental',
'@angular/material': 'ng.material',
'@angular/material-experimental': 'ng.materialExperimental',
}
# Rollup globals for cdk subpackages in the form of, e.g., {"@angular/cdk/table": "ng.cdk.table"}
ROLLUP_GLOBALS.update({
"@angular/cdk/%s" % p: "ng.cdk.%s" % p for p in CDK_PACKAGES
})
# Rollup globals for cdk subpackages in the form of, e.g.,
# {"@angular/cdk-experimental/scrolling": "ng.cdkExperimental.scrolling"}
ROLLUP_GLOBALS.update({
"@angular/cdk-experimental/%s" % p: "ng.cdkExperimental.%s" % p for p in CDK_EXPERIMENTAL_PACKAGES
})
# Rollup globals for material subpackages, e.g., {"@angular/material/list": "ng.material.list"}
ROLLUP_GLOBALS.update({
"@angular/material/%s" % p: "ng.material.%s" % p for p in MATERIAL_PACKAGES
})
# UMD bundles for Angular packages and subpackges we depend on for development and testing.
ANGULAR_LIBRARY_UMDS = [
"@npm//node_modules/@angular/animations:bundles/animations-browser.umd.js",
"@npm//node_modules/@angular/animations:bundles/animations.umd.js",
"@npm//node_modules/@angular/common:bundles/common-http-testing.umd.js",
"@npm//node_modules/@angular/common:bundles/common-http.umd.js",
"@npm//node_modules/@angular/common:bundles/common-testing.umd.js",
"@npm//node_modules/@angular/common:bundles/common.umd.js",
"@npm//node_modules/@angular/compiler:bundles/compiler-testing.umd.js",
"@npm//node_modules/@angular/compiler:bundles/compiler.umd.js",
"@npm//node_modules/@angular/core:bundles/core-testing.umd.js",
"@npm//node_modules/@angular/core:bundles/core.umd.js",
"@npm//node_modules/@angular/forms:bundles/forms.umd.js",
"@npm//node_modules/@angular/platform-browser-dynamic:bundles/platform-browser-dynamic-testing.umd.js",
"@npm//node_modules/@angular/platform-browser-dynamic:bundles/platform-browser-dynamic.umd.js",
"@npm//node_modules/@angular/platform-browser:bundles/platform-browser-animations.umd.js",
"@npm//node_modules/@angular/platform-browser:bundles/platform-browser-testing.umd.js",
"@npm//node_modules/@angular/platform-browser:bundles/platform-browser.umd.js",
]