forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from angular/main
Create a new pull request by comparing changes across two branches
- Loading branch information
Showing
152 changed files
with
6,709 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
# Expose the sources in the dev-infra NPM package. | ||
filegroup( | ||
name = "files", | ||
srcs = glob(["*"]) + [ | ||
"//adev/shared-docs/pipeline/api-gen/extraction:files", | ||
"//adev/shared-docs/pipeline/api-gen/manifest:files", | ||
"//adev/shared-docs/pipeline/api-gen/rendering:files", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
load("@angular//tools/esm-interop:index.bzl", "nodejs_binary") | ||
load("@npm//@angular/build-tooling/bazel/esbuild:index.bzl", "esbuild") | ||
load("@npm//@angular/build-tooling/bazel:defaults.bzl", "ts_library") | ||
|
||
package(default_visibility = ["//adev/shared-docs/pipeline/api-gen:__subpackages__"]) | ||
|
||
esbuild( | ||
name = "bin", | ||
entry_point = ":index.ts", | ||
external = [ | ||
"@angular/compiler-cli", | ||
"typescript", | ||
], | ||
format = "esm", | ||
output = "bin.mjs", | ||
platform = "node", | ||
target = "es2022", | ||
deps = [ | ||
":extract_api_to_json_lib", | ||
"@angular//packages/compiler-cli", | ||
"@npm//typescript", | ||
], | ||
) | ||
|
||
ts_library( | ||
name = "extract_api_to_json_lib", | ||
srcs = glob(["**/*.ts"]), | ||
devmode_module = "commonjs", | ||
tsconfig = "//adev:tsconfig.json", | ||
deps = [ | ||
"@angular//packages/compiler", | ||
"@angular//packages/compiler-cli", | ||
"@npm//@bazel/runfiles", | ||
"@npm//@types/node", | ||
"@npm//typescript", | ||
], | ||
) | ||
|
||
# Action binary for the api_gen bazel rule. | ||
nodejs_binary( | ||
name = "extract_api_to_json", | ||
data = [ | ||
":bin", | ||
"@angular//packages/compiler", | ||
"@angular//packages/compiler-cli", | ||
"@npm//typescript", | ||
], | ||
entry_point = "bin.mjs", | ||
# Note: Using the linker here as we need it for ESM. The linker is not | ||
# super reliably when running concurrently on Windows- but we have existing | ||
# actions using the linker. An alternative would be to: | ||
# - bundle the Angular compiler into a CommonJS bundle | ||
# - use the patched resolution- but also patch the ESM imports (similar to how FW does it). | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
# Expose the sources in the dev-infra NPM package. | ||
filegroup( | ||
name = "files", | ||
srcs = glob(["**/*"]), | ||
) |
Oops, something went wrong.