mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
To increase the ease of development we are moving @angular/docs into the adev directory within this repo. While we are doing this to improve our development experience in the short term, efforts are also in place to maintain a division between this @angular/docs (shared) code and adev itself, so that it can be extracted back out in the future when components is ready to leverage it as well. PR Close #57132
43 lines
975 B
Text
43 lines
975 B
Text
load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
ng_module(
|
|
name = "copy-source-code-button",
|
|
srcs = [
|
|
"copy-source-code-button.component.ts",
|
|
],
|
|
assets = [
|
|
"copy-source-code-button.component.html",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs/components:__pkg__",
|
|
"//adev/shared-docs/components/viewers:__pkg__",
|
|
],
|
|
deps = [
|
|
"//adev/shared-docs/components/icon",
|
|
"//packages/common",
|
|
"//packages/core",
|
|
"@npm//@angular/cdk",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["*.spec.ts"],
|
|
),
|
|
deps = [
|
|
":copy-source-code-button",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser",
|
|
"@npm//@angular/cdk",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test",
|
|
deps = [":test_lib"],
|
|
)
|