mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Generate the `NavigationItem`-s as part of adev/shared-docs pipeline and use the output JSON files instead of the hardcoded objects in the `sub-navigation-data.ts`. PR Close #59355
52 lines
967 B
Text
52 lines
967 B
Text
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "editor",
|
|
srcs = glob(
|
|
[
|
|
"*.ts",
|
|
],
|
|
exclude = [
|
|
"playground.ts",
|
|
"tutorial.ts",
|
|
],
|
|
),
|
|
deps = [
|
|
"//adev/shared-docs/interfaces",
|
|
"@npm//@types/node",
|
|
"@npm//@webcontainer/api",
|
|
"@npm//fast-glob",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "playground",
|
|
srcs = [
|
|
"playground.ts",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs:__subpackages__",
|
|
],
|
|
deps = [
|
|
":editor",
|
|
"//adev/shared-docs/interfaces",
|
|
"@npm//@types/node",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "tutorials",
|
|
srcs = [
|
|
"tutorial.ts",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs:__subpackages__",
|
|
],
|
|
deps = [
|
|
":editor",
|
|
"//adev/shared-docs/interfaces",
|
|
"@npm//@types/node",
|
|
],
|
|
)
|