mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: migrate animations to use rules_js based toolchain (#61479)
Migrate animations to use `ts_project` and `ng_project` PR Close #61479
This commit is contained in:
parent
40534d7de1
commit
7f26df1608
6 changed files with 46 additions and 32 deletions
|
|
@ -1,8 +1,9 @@
|
|||
load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_module", "ng_package")
|
||||
load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_package")
|
||||
load("//tools:defaults2.bzl", "ng_project")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
ng_module(
|
||||
ng_project(
|
||||
name = "animations",
|
||||
srcs = glob(
|
||||
[
|
||||
|
|
@ -10,9 +11,11 @@ ng_module(
|
|||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
deps = [
|
||||
interop_deps = [
|
||||
"//packages/common",
|
||||
"//packages/core",
|
||||
],
|
||||
deps = [
|
||||
"//packages/core:core_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
load("//tools:defaults.bzl", "generate_api_docs", "ng_module")
|
||||
load("//tools:defaults.bzl", "generate_api_docs")
|
||||
load("//tools:defaults2.bzl", "ng_project")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files(["package.json"])
|
||||
|
||||
ng_module(
|
||||
ng_project(
|
||||
name = "browser",
|
||||
srcs = glob(
|
||||
[
|
||||
|
|
@ -13,8 +14,8 @@ ng_module(
|
|||
],
|
||||
),
|
||||
deps = [
|
||||
"//packages/animations",
|
||||
"//packages/core",
|
||||
"//packages/animations:animations_rjs",
|
||||
"//packages/core:core_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
||||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
|
||||
load("//tools:defaults2.bzl", "ts_project")
|
||||
|
||||
ts_library(
|
||||
ts_project(
|
||||
name = "test_lib",
|
||||
testonly = True,
|
||||
srcs = glob(["**/*.ts"]),
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/animations",
|
||||
"//packages/animations/browser",
|
||||
"//packages/animations/browser/testing",
|
||||
"//packages/core",
|
||||
"//packages/core/testing",
|
||||
"//packages/platform-browser/testing",
|
||||
"//packages:types_rjs",
|
||||
"//packages/animations:animations_rjs",
|
||||
"//packages/animations/browser:browser_rjs",
|
||||
"//packages/animations/browser/testing:testing_rjs",
|
||||
"//packages/core:core_rjs",
|
||||
"//packages/core/testing:testing_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
load("//tools:defaults.bzl", "generate_api_docs", "ng_module")
|
||||
load("//tools:defaults.bzl", "generate_api_docs")
|
||||
load("//tools:defaults2.bzl", "ng_project")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files(["package.json"])
|
||||
|
||||
ng_module(
|
||||
ng_project(
|
||||
name = "testing",
|
||||
srcs = glob(["**/*.ts"]),
|
||||
deps = [
|
||||
"//packages/animations",
|
||||
"//packages/animations/browser",
|
||||
"//packages/animations:animations_rjs",
|
||||
"//packages/animations/browser:browser_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,23 +1,26 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
||||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
|
||||
load("//tools:defaults2.bzl", "ts_project")
|
||||
|
||||
ts_library(
|
||||
ts_project(
|
||||
name = "test_lib",
|
||||
testonly = True,
|
||||
srcs = glob(["**/*.ts"]),
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/animations",
|
||||
"//packages/animations/browser",
|
||||
"//packages/animations/browser/testing",
|
||||
interop_deps = [
|
||||
"//packages/common",
|
||||
"//packages/core",
|
||||
"//packages/core/testing",
|
||||
"//packages/platform-browser",
|
||||
"//packages/platform-browser-dynamic/testing",
|
||||
"//packages/platform-browser/animations",
|
||||
"//packages/platform-browser/animations/async",
|
||||
"//packages/platform-browser/testing",
|
||||
],
|
||||
deps = [
|
||||
"//packages:types_rjs",
|
||||
"//packages/animations:animations_rjs",
|
||||
"//packages/animations/browser:browser_rjs",
|
||||
"//packages/animations/browser/testing:testing_rjs",
|
||||
"//packages/core:core_rjs",
|
||||
"//packages/core/testing:testing_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
|
|
|
|||
|
|
@ -16,10 +16,16 @@ ng_partial_compilation_flag = rule(
|
|||
)
|
||||
|
||||
def _partial_compilation_transition_impl(_settings, _attr):
|
||||
return {"//packages/bazel/src:partial_compilation": True}
|
||||
return {
|
||||
"@rules_angular//src/ng_project/config:partial_compilation": True,
|
||||
"//packages/bazel/src:partial_compilation": True,
|
||||
}
|
||||
|
||||
partial_compilation_transition = transition(
|
||||
implementation = _partial_compilation_transition_impl,
|
||||
inputs = [],
|
||||
outputs = ["//packages/bazel/src:partial_compilation"],
|
||||
outputs = [
|
||||
"//packages/bazel/src:partial_compilation",
|
||||
"@rules_angular//src/ng_project/config:partial_compilation",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue