mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
82b51c6ac1
Move ts_project and ng_project into a macro for adev/ instead of providing a custom tsconfig on every target PR Close #61345
53 lines
1.1 KiB
Python
53 lines
1.1 KiB
Python
load("//adev/shared-docs:defaults.bzl", "ts_project")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "editor",
|
|
srcs = glob(
|
|
[
|
|
"*.mts",
|
|
],
|
|
exclude = [
|
|
"playground.mts",
|
|
"tutorial.mts",
|
|
],
|
|
),
|
|
deps = [
|
|
"//:node_modules/@types/node",
|
|
"//:node_modules/@webcontainer/api",
|
|
"//:node_modules/tinyglobby",
|
|
"//adev/shared-docs/interfaces:interfaces_rjs",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "playground",
|
|
srcs = [
|
|
"playground.mts",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs:__subpackages__",
|
|
],
|
|
deps = [
|
|
":editor_rjs",
|
|
"//:node_modules/@types/node",
|
|
"//adev/shared-docs/interfaces:interfaces_rjs",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "tutorials",
|
|
srcs = [
|
|
"tutorial.mts",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs:__subpackages__",
|
|
],
|
|
deps = [
|
|
":editor_rjs",
|
|
"//:node_modules/@types/node",
|
|
"//adev/shared-docs/interfaces:interfaces_rjs",
|
|
],
|
|
)
|