mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 11:03:53 +08:00
build: migrate @ngtools/webpack
tests to rules_js
Migrates the sub-entry point tests for ngtools/webpack to `rules_js`.
This commit is contained in:
parent
e8a97aa465
commit
1aa943cd7d
@ -4,13 +4,15 @@
|
||||
# found in the LICENSE file at https://angular.dev/license
|
||||
|
||||
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("//tools:defaults2.bzl", "npm_package", "ts_project")
|
||||
load("@npm2//:defs.bzl", "npm_link_all_packages")
|
||||
load("//tools:defaults2.bzl", "jasmine_test", "npm_package", "ts_project")
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
npm_link_all_packages()
|
||||
|
||||
ts_project(
|
||||
name = "webpack",
|
||||
srcs = glob(
|
||||
@ -46,17 +48,21 @@ ts_project(
|
||||
],
|
||||
),
|
||||
deps = [
|
||||
":node_modules/@angular-devkit/core",
|
||||
":webpack_rjs",
|
||||
"//:node_modules/@angular/compiler",
|
||||
"//:node_modules/@types/jasmine",
|
||||
"//:node_modules/typescript",
|
||||
"//packages/angular_devkit/core:core_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
jasmine_test(
|
||||
name = "webpack_test",
|
||||
srcs = [":webpack_test_lib"],
|
||||
data = [
|
||||
":webpack_test_lib_rjs",
|
||||
# Needed at runtime for runtime TS compilations performed by tests.
|
||||
"//:node_modules/tslib",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
|
Loading…
x
Reference in New Issue
Block a user