mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
af19d98582
Move ts_project and ng_project into a macro for adev/ instead of providing a custom tsconfig on every target PR Close #61344
42 lines
834 B
Python
42 lines
834 B
Python
load("//adev/shared-docs:defaults.bzl", "ts_project")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "stackblitz",
|
|
srcs = glob(
|
|
[
|
|
"*.mts",
|
|
],
|
|
exclude = [
|
|
"index.mts",
|
|
],
|
|
),
|
|
deps = [
|
|
"//:node_modules/@types/jsdom",
|
|
"//:node_modules/@types/node",
|
|
"//:node_modules/fast-glob",
|
|
"//:node_modules/jsdom",
|
|
"//adev/shared-docs/pipeline/examples/shared:shared_rjs",
|
|
"//adev/shared-docs/pipeline/guides:guides_rjs",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "index",
|
|
srcs = [
|
|
"index.mts",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs:__subpackages__",
|
|
],
|
|
deps = [
|
|
":stackblitz_rjs",
|
|
"//:node_modules/@types/node",
|
|
],
|
|
)
|
|
|
|
exports_files([
|
|
"index.mts",
|
|
])
|