mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: migrate compiler-cli/src/ngtsc/docs to ts_project (#61237)
Migrates `compiler-cli/src/ngtsc/docs` to `ts_project`. PR Close #61237
This commit is contained in:
parent
1bfd7bbd1c
commit
27e4e5847f
5 changed files with 13 additions and 10 deletions
|
|
@ -38,7 +38,6 @@ export {ConsoleLogger, Logger, LogLevel} from './src/ngtsc/logging';
|
|||
export {NodeJSFileSystem, absoluteFrom} from './src/ngtsc/file_system';
|
||||
|
||||
// Export documentation entities for Angular-internal API doc generation.
|
||||
export * from './src/ngtsc/docs/src/entities';
|
||||
export * from './src/ngtsc/docs';
|
||||
|
||||
// Exposed for usage in 1P Angular plugin.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ package(default_visibility = ["//visibility:public"])
|
|||
ts_library(
|
||||
name = "ngcc",
|
||||
srcs = ["index.ts"],
|
||||
tsconfig = "//packages/compiler-cli:tsconfig",
|
||||
deps = [
|
||||
"@npm//@types/node",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,20 +1,22 @@
|
|||
load("//tools:defaults.bzl", "ts_library")
|
||||
load("//tools:defaults2.bzl", "ts_project")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# Compiler code pertaining to extracting data for generating API reference documentation.
|
||||
ts_library(
|
||||
ts_project(
|
||||
name = "docs",
|
||||
srcs = ["index.ts"] + glob([
|
||||
"src/**/*.ts",
|
||||
]),
|
||||
module_name = "@angular/compiler-cli/src/ngtsc/docs",
|
||||
deps = [
|
||||
interop_deps = [
|
||||
"//packages/compiler-cli/src/ngtsc/imports",
|
||||
"//packages/compiler-cli/src/ngtsc/metadata",
|
||||
"//packages/compiler-cli/src/ngtsc/reflection",
|
||||
"//packages/compiler-cli/src/ngtsc/util",
|
||||
"@npm//@types/node",
|
||||
"@npm//typescript",
|
||||
],
|
||||
module_name = "@angular/compiler-cli/src/ngtsc/docs",
|
||||
deps = [
|
||||
"//:node_modules/@types/node",
|
||||
"//:node_modules/typescript",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,5 +6,5 @@
|
|||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
export {DocEntry} from './src/entities';
|
||||
export * from './src/entities';
|
||||
export {DocsExtractor} from './src/extractor';
|
||||
|
|
|
|||
|
|
@ -29,7 +29,10 @@
|
|||
"emitDecoratorMetadata": true,
|
||||
"sourceMap": true,
|
||||
"inlineSources": true,
|
||||
"importHelpers": true
|
||||
"importHelpers": true,
|
||||
"paths": {
|
||||
"@angular/*": ["./*/index", "./*"]
|
||||
}
|
||||
},
|
||||
"bazelOptions": {
|
||||
"suppressTsconfigOverrideWarnings": true
|
||||
|
|
|
|||
Loading…
Reference in a new issue