mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
4fae4dbba8
Use the packaged versions of the packages instead of the local ts_project dependencies to prevent multiple versions of the deps to enter test bundles PR Close #62413
50 lines
1.2 KiB
Python
50 lines
1.2 KiB
Python
load("//adev/shared-docs:defaults.bzl", "ng_project", "ts_project")
|
|
load("//tools:defaults2.bzl", "ng_web_test_suite", "sass_binary")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
ng_project(
|
|
name = "top-level-banner",
|
|
srcs = [
|
|
"top-level-banner.component.ts",
|
|
],
|
|
assets = [
|
|
":top-level-banner.component.css",
|
|
"top-level-banner.component.html",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs/components:__pkg__",
|
|
],
|
|
deps = [
|
|
"//:node_modules/@angular/common",
|
|
"//:node_modules/@angular/core",
|
|
"//adev/shared-docs/components/icon:icon_rjs",
|
|
"//adev/shared-docs/directives:directives_rjs",
|
|
"//adev/shared-docs/providers:providers_rjs",
|
|
],
|
|
)
|
|
|
|
sass_binary(
|
|
name = "style",
|
|
src = "top-level-banner.component.scss",
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["*.spec.ts"],
|
|
),
|
|
deps = [
|
|
":top-level-banner_rjs",
|
|
"//:node_modules/@angular/core",
|
|
"//adev/shared-docs/providers:providers_rjs",
|
|
],
|
|
)
|
|
|
|
ng_web_test_suite(
|
|
name = "test",
|
|
tsconfig = "//adev/shared-docs:tsconfig_test",
|
|
deps = [":test_lib_rjs"],
|
|
)
|