mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Move ts_project and ng_project into a macro for adev/ instead of providing a custom tsconfig on every target PR Close #61319
47 lines
950 B
Text
47 lines
950 B
Text
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
|
|
load("//adev/shared-docs:defaults.bzl", "ng_project", "ts_project")
|
|
load("//tools:defaults.bzl", "karma_web_test_suite")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
ng_project(
|
|
name = "select",
|
|
srcs = [
|
|
"select.component.ts",
|
|
],
|
|
assets = [
|
|
":select.component.css",
|
|
"select.component.html",
|
|
],
|
|
interop_deps = [
|
|
"//packages/common",
|
|
"//packages/core",
|
|
"//packages/forms",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs/components:__pkg__",
|
|
],
|
|
)
|
|
|
|
sass_binary(
|
|
name = "style",
|
|
src = "select.component.scss",
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["*.spec.ts"],
|
|
),
|
|
interop_deps = [
|
|
":select",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test",
|
|
deps = [":test_lib"],
|
|
)
|