mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
build: migrate angular_devkit/core
to ts_project
Migrates `@angular-devkit/core` to `ts_project`.
This commit is contained in:
parent
b4e9a2af9e
commit
dfe9c6a3cc
@ -1,6 +1,7 @@
|
|||||||
load("@npm//@angular/build-tooling/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
|
load("@npm//@angular/build-tooling/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
|
||||||
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
||||||
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
|
load("//tools:defaults.bzl", "pkg_npm")
|
||||||
|
load("//tools:interop.bzl", "ts_project")
|
||||||
|
|
||||||
# Copyright Google Inc. All Rights Reserved.
|
# Copyright Google Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
@ -12,15 +13,14 @@ licenses(["notice"])
|
|||||||
|
|
||||||
# @angular-devkit/core
|
# @angular-devkit/core
|
||||||
|
|
||||||
ts_library(
|
ts_project(
|
||||||
name = "core",
|
name = "core",
|
||||||
package_name = "@angular-devkit/core",
|
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
include = ["src/**/*.ts"],
|
include = ["src/**/*.ts"],
|
||||||
exclude = [
|
exclude = [
|
||||||
"src/**/*_spec.ts",
|
"src/**/*_spec.ts",
|
||||||
],
|
],
|
||||||
),
|
) + ["index.ts"],
|
||||||
data = glob(
|
data = glob(
|
||||||
include = ["**/*.json"],
|
include = ["**/*.json"],
|
||||||
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
|
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
|
||||||
@ -30,16 +30,16 @@ ts_library(
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
module_name = "@angular-devkit/core",
|
module_name = "@angular-devkit/core",
|
||||||
module_root = "src/index.d.ts",
|
|
||||||
deps = [
|
deps = [
|
||||||
"@npm//@types/node",
|
"//:root_modules/@types/node",
|
||||||
"@npm//@types/picomatch",
|
"//:root_modules/@types/picomatch",
|
||||||
"@npm//ajv",
|
"//:root_modules/@types/jasmine",
|
||||||
"@npm//ajv-formats",
|
"//:root_modules/ajv",
|
||||||
"@npm//jsonc-parser",
|
"//:root_modules/ajv-formats",
|
||||||
"@npm//picomatch",
|
"//:root_modules/jsonc-parser",
|
||||||
"@npm//rxjs",
|
"//:root_modules/picomatch",
|
||||||
"@npm//source-map",
|
"//:root_modules/rxjs",
|
||||||
|
"//:root_modules/source-map",
|
||||||
# @node_module: typescript:es2015.proxy
|
# @node_module: typescript:es2015.proxy
|
||||||
# @node_module: typescript:es2015.reflect
|
# @node_module: typescript:es2015.reflect
|
||||||
# @node_module: typescript:es2015.symbol.wellknown
|
# @node_module: typescript:es2015.symbol.wellknown
|
||||||
@ -49,15 +49,15 @@ ts_library(
|
|||||||
|
|
||||||
# @external_begin
|
# @external_begin
|
||||||
|
|
||||||
ts_library(
|
ts_project(
|
||||||
name = "core_test_lib",
|
name = "core_test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
srcs = glob(["src/**/*_spec.ts"]),
|
srcs = glob(["src/**/*_spec.ts"]),
|
||||||
data = glob(["src/workspace/json/test/**/*.json"]),
|
data = glob(["src/workspace/json/test/**/*.json"]),
|
||||||
deps = [
|
deps = [
|
||||||
":core",
|
":core_rjs",
|
||||||
"//packages/angular_devkit/core/node",
|
"//:root_modules/rxjs",
|
||||||
"@npm//rxjs",
|
"//packages/angular_devkit/core/node:node_rjs",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
9
packages/angular_devkit/core/index.ts
Normal file
9
packages/angular_devkit/core/index.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Google LLC All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style license that can be
|
||||||
|
* found in the LICENSE file at https://angular.dev/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from './src/index';
|
@ -4,13 +4,13 @@
|
|||||||
# found in the LICENSE file at https://angular.dev/license
|
# found in the LICENSE file at https://angular.dev/license
|
||||||
|
|
||||||
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:interop.bzl", "ts_project")
|
||||||
|
|
||||||
licenses(["notice"])
|
licenses(["notice"])
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_project(
|
||||||
name = "node",
|
name = "node",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
include = ["**/*.ts"],
|
include = ["**/*.ts"],
|
||||||
@ -20,18 +20,17 @@ ts_library(
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
module_name = "@angular-devkit/core/node",
|
module_name = "@angular-devkit/core/node",
|
||||||
module_root = "index.d.ts",
|
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/angular_devkit/core",
|
"//:root_modules/@types/node",
|
||||||
"@npm//@types/node",
|
"//:root_modules/chokidar",
|
||||||
"@npm//chokidar",
|
"//:root_modules/rxjs",
|
||||||
"@npm//rxjs",
|
"//packages/angular_devkit/core:core_rjs",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
# @external_begin
|
# @external_begin
|
||||||
|
|
||||||
ts_library(
|
ts_project(
|
||||||
name = "node_test_lib",
|
name = "node_test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
@ -43,9 +42,10 @@ ts_library(
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
deps = [
|
deps = [
|
||||||
":node",
|
":node_rjs",
|
||||||
"//packages/angular_devkit/core",
|
"//:root_modules/@types/jasmine",
|
||||||
"@npm//rxjs",
|
"//:root_modules/rxjs",
|
||||||
|
"//packages/angular_devkit/core:core_rjs",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
load("//tools:defaults.bzl", "ts_library")
|
load("//tools:interop.bzl", "ts_project")
|
||||||
|
|
||||||
# Copyright Google Inc. All Rights Reserved.
|
# Copyright Google Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
@ -8,7 +8,7 @@ licenses(["notice"])
|
|||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
ts_library(
|
ts_project(
|
||||||
name = "testing",
|
name = "testing",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
include = ["**/*.ts"],
|
include = ["**/*.ts"],
|
||||||
@ -17,12 +17,11 @@ ts_library(
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
module_name = "@angular-devkit/core/node/testing",
|
module_name = "@angular-devkit/core/node/testing",
|
||||||
module_root = "index.d.ts",
|
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/angular_devkit/core",
|
"//:root_modules/@types/jasmine",
|
||||||
"//packages/angular_devkit/core/node",
|
"//:root_modules/@types/node",
|
||||||
"@npm//@types/jasmine",
|
"//:root_modules/rxjs",
|
||||||
"@npm//@types/node",
|
"//packages/angular_devkit/core:core_rjs",
|
||||||
"@npm//rxjs",
|
"//packages/angular_devkit/core/node:node_rjs",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user