Skip to content

Commit 2c7f257

Browse files
committed
build: integrate docs into monorepo workspace
Integrates the `docs` site into the monorepo Bazel workspace.
1 parent 16ca179 commit 2c7f257

27 files changed

+4405
-33217
lines changed

.bazelignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
dist
22
node_modules
33

4+
docs/node_modules
5+
46
integration/harness-e2e-cli/.angular
57
integration/harness-e2e-cli/node_modules
68
integration/ng-update-v13/.angular

WORKSPACE

+37-9
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ npm_translate_lock(
139139
},
140140
data = [
141141
"//:package.json",
142+
"//:patches/@angular-devkit__architect-cli.patch",
142143
"//:pnpm-workspace.yaml",
143144
"//integration:package.json",
144145
"//src/cdk:package.json",
@@ -157,15 +158,42 @@ npm_translate_lock(
157158
],
158159
npmrc = "//:.npmrc",
159160
package_visibility = {
160-
"@angular/cdk": ["//integration:__subpackages__"],
161-
"@angular/cdk-experimental": ["//integration:__subpackages__"],
162-
"@angular/material": ["//integration:__subpackages__"],
163-
"@angular/material-experimental": ["//integration:__subpackages__"],
164-
"@angular/google-maps": ["//integration:__subpackages__"],
165-
"@angular/youtube-player": ["//integration:__subpackages__"],
166-
"@angular/material-moment-adapter": ["//integration:__subpackages__"],
167-
"@angular/material-date-fns-adapter": ["//integration:__subpackages__"],
168-
"@angular/material-luxon-adapter": ["//integration:__subpackages__"],
161+
"@angular/cdk": [
162+
"//integration:__subpackages__",
163+
"//docs:__subpackages__",
164+
],
165+
"@angular/cdk-experimental": [
166+
"//integration:__subpackages__",
167+
"//docs:__subpackages__",
168+
],
169+
"@angular/material": [
170+
"//integration:__subpackages__",
171+
"//docs:__subpackages__",
172+
],
173+
"@angular/material-experimental": [
174+
"//integration:__subpackages__",
175+
"//docs:__subpackages__",
176+
],
177+
"@angular/google-maps": [
178+
"//integration:__subpackages__",
179+
"//docs:__subpackages__",
180+
],
181+
"@angular/youtube-player": [
182+
"//integration:__subpackages__",
183+
"//docs:__subpackages__",
184+
],
185+
"@angular/material-moment-adapter": [
186+
"//integration:__subpackages__",
187+
"//docs:__subpackages__",
188+
],
189+
"@angular/material-date-fns-adapter": [
190+
"//integration:__subpackages__",
191+
"//docs:__subpackages__",
192+
],
193+
"@angular/material-luxon-adapter": [
194+
"//integration:__subpackages__",
195+
"//docs:__subpackages__",
196+
],
169197
},
170198
pnpm_lock = "//:pnpm-lock.yaml",
171199
pnpm_version = "9.14.1",

docs/.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=

-7
This file was deleted.

docs/.bazelignore

-6
This file was deleted.

docs/.bazelrc

-58
This file was deleted.

docs/.bazelversion

-1
This file was deleted.

docs/.circleci/config.yml

-16
This file was deleted.

docs/.yarn/releases/yarn-4.7.0.cjs

-935
This file was deleted.

docs/BUILD.bazel

+20-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
22
load("@aspect_rules_js//js:defs.bzl", "js_test")
3-
load("@npm//:defs.bzl", "npm_link_all_packages")
4-
load("//:defs.bzl", "ng_app")
3+
load("@npm2//:defs.bzl", "npm_link_all_packages")
4+
load("//docs:defs.bzl", "ng_app")
55

66
package(default_visibility = ["//visibility:public"])
77

@@ -39,27 +39,34 @@ ng_app(
3939
name = "app",
4040
project_name = "material-angular-io",
4141
deps = [
42-
"//:node_modules/@angular/components-examples",
43-
"//:node_modules/@stackblitz/sdk",
44-
"//:node_modules/moment",
45-
"//:node_modules/path-normalize",
42+
"//docs:node_modules/@angular/components-examples",
43+
"//docs:node_modules/@stackblitz/sdk",
44+
"//docs:node_modules/moment",
45+
"//docs:node_modules/path-normalize",
4646
],
4747
)
4848

4949
js_test(
5050
name = "audit",
5151
args = [
52-
"$(location //:build.production)",
52+
"$(location //docs:build.production)",
5353
],
5454
data = [
5555
"tools/lighthouse-audit.mjs",
56-
"//:build.production",
57-
"//:node_modules/light-server",
58-
"//:node_modules/lighthouse",
59-
"//:node_modules/lighthouse-logger",
60-
"//:node_modules/puppeteer",
61-
"//:node_modules/shelljs",
56+
"//docs:build.production",
57+
"//docs:node_modules/light-server",
58+
"//docs:node_modules/lighthouse",
59+
"//docs:node_modules/lighthouse-logger",
60+
"//docs:node_modules/puppeteer-core",
61+
"//docs:node_modules/shelljs",
62+
"@rules_browsers//src/browsers/chromium",
6263
],
6364
entry_point = "tools/audit-docs.js",
65+
env = {
66+
"CHROMIUM_BIN": "$(CHROME-HEADLESS-SHELL)",
67+
},
6468
tags = ["audit"],
69+
toolchains = [
70+
"@rules_browsers//src/browsers/chromium:toolchain_alias",
71+
],
6572
)

docs/WORKSPACE.bazel

-88
This file was deleted.

0 commit comments

Comments
 (0)