mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: migrate angular-in-memory-web-api to use rules_js (#61524)
Use ts_project and ng_project for building angular-in-memory-web-api PR Close #61524
This commit is contained in:
parent
efda872453
commit
d65cfde3fa
3 changed files with 23 additions and 17 deletions
|
|
@ -1,22 +1,24 @@
|
|||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||
load("//tools:defaults.bzl", "ng_package")
|
||||
load("//tools:defaults2.bzl", "ng_project")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
ng_module(
|
||||
ng_project(
|
||||
name = "angular-in-memory-web-api",
|
||||
package_name = "angular-in-memory-web-api",
|
||||
srcs = glob(
|
||||
[
|
||||
"*.ts",
|
||||
"src/**/*.ts",
|
||||
],
|
||||
),
|
||||
module_name = "angular-in-memory-web-api",
|
||||
deps = [
|
||||
interop_deps = [
|
||||
"//packages/common",
|
||||
"//packages/common/http",
|
||||
"//packages/core",
|
||||
"@npm//rxjs",
|
||||
],
|
||||
module_name = "angular-in-memory-web-api",
|
||||
deps = [
|
||||
"//:node_modules/rxjs",
|
||||
"//packages/core:core_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,23 @@
|
|||
load("//tools:defaults.bzl", "karma_web_test_suite", "ts_library")
|
||||
load("//tools:defaults.bzl", "karma_web_test_suite")
|
||||
load("//tools:defaults2.bzl", "ts_project")
|
||||
|
||||
ts_library(
|
||||
ts_project(
|
||||
name = "test_lib",
|
||||
testonly = True,
|
||||
srcs = glob(["**/*.ts"]),
|
||||
interop_deps = [
|
||||
"//packages/common",
|
||||
"//packages/common/http",
|
||||
],
|
||||
# Visible to //:saucelabs_unit_tests_poc target
|
||||
visibility = ["//:__pkg__"],
|
||||
deps = [
|
||||
"//packages/common",
|
||||
"//packages/common/http",
|
||||
"//packages/core",
|
||||
"//packages/core/testing",
|
||||
"//packages/misc/angular-in-memory-web-api",
|
||||
"@npm//@types/jasmine-ajax",
|
||||
"@npm//jasmine-ajax",
|
||||
"@npm//rxjs",
|
||||
"//:node_modules/@types/jasmine-ajax",
|
||||
"//:node_modules/jasmine-ajax",
|
||||
"//:node_modules/rxjs",
|
||||
"//packages/core:core_rjs",
|
||||
"//packages/core/testing:testing_rjs",
|
||||
"//packages/misc/angular-in-memory-web-api:angular-in-memory-web-api_rjs",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
"inlineSources": true,
|
||||
"importHelpers": true,
|
||||
"paths": {
|
||||
"angular-in-memory-web-api": ["./misc/angular-in-memory-web-api/index"],
|
||||
"zone.js": ["./zone.js/lib/zone"],
|
||||
"@angular/*": [
|
||||
"./*/index",
|
||||
|
|
|
|||
Loading…
Reference in a new issue