mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ac3f8c4d1a
* Introduces support for `ng add @angular/cdk`. Note that this currently just sets up the `package.json` but is necessary because otherwise the CLI will complain about the `ng-add` schematic not being available. * Upgrades Bazel workspace rules in favor of removing Bazel manual-copying workarounds for the schematics. This also allows us to switch over to fine-grained dependencies in a follow-up (making it consistent with angular/angular). * Use fine grained dependencies in schematics bazel rules
49 lines
1.4 KiB
Python
49 lines
1.4 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
# TODO(jelbourn): figure out if these workarounds are still needed
|
|
|
|
# TODO: Replace with fine-grained node_modules using `npm_install` / `yarn_install`.
|
|
# TODO: See https://github.com/bazelbuild/rules_nodejs/wiki#migrating-to-rules_nodejs-013
|
|
alias(
|
|
name = "node_modules",
|
|
actual = "@npm//:node_modules",
|
|
)
|
|
|
|
# Glob pattern that matches all Angular testing bundles.
|
|
ANGULAR_TESTING = [
|
|
"node_modules/@angular/*/bundles/*-testing.umd.js",
|
|
# The compiler and the dynamic platform-browser should be visible only in tests
|
|
"node_modules/@angular/compiler/bundles/*.umd.js",
|
|
"node_modules/@angular/platform-browser-dynamic/bundles/*.umd.js",
|
|
]
|
|
|
|
filegroup(
|
|
name = "angular_bundles",
|
|
srcs = glob(["node_modules/@angular/*/bundles/*.umd.js"], exclude = ANGULAR_TESTING),
|
|
)
|
|
|
|
filegroup(
|
|
name = "angular_test_bundles",
|
|
testonly = 1,
|
|
srcs = glob(ANGULAR_TESTING),
|
|
)
|
|
|
|
filegroup(
|
|
name = "tslib_bundle",
|
|
testonly = 1,
|
|
srcs = glob(["node_modules/tslib/tslib.js"]),
|
|
)
|
|
|
|
# Files necessary for unit tests that use zonejs
|
|
filegroup(
|
|
name = "web_test_bootstrap_scripts",
|
|
# The order of these deps is important.
|
|
# Do not sort.
|
|
srcs = [
|
|
"//:node_modules/reflect-metadata/Reflect.js",
|
|
"//:node_modules/zone.js/dist/zone.js",
|
|
"//:node_modules/zone.js/dist/zone-testing.js",
|
|
"//:node_modules/zone.js/dist/task-tracking.js",
|
|
],
|
|
)
|