test: migrate remaining public-api tests to Bazel (#22639)
We now create npm packages to cover all the public api assertions in tools/public_api_guard. We no longer depend on ts-api-guardian from npm - it is now stale since the repository was archived. There is no longer a gulp task to enforce or accept the public API, this is in CircleCI as part of running all bazel test targets. PR Close #22639
This commit is contained in:

committed by
Kara Erickson

parent
b26a90567c
commit
1e6cc42a01
@ -1,6 +1,6 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("//tools:defaults.bzl", "ng_module")
|
||||
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
||||
|
||||
ng_module(
|
||||
name = "http",
|
||||
@ -17,3 +17,16 @@ ng_module(
|
||||
"@rxjs",
|
||||
],
|
||||
)
|
||||
|
||||
ng_package(
|
||||
name = "npm_package",
|
||||
srcs = ["package.json"],
|
||||
entry_point = "packages/http/index.js",
|
||||
secondary_entry_points = [
|
||||
"testing",
|
||||
],
|
||||
deps = [
|
||||
":http",
|
||||
"//packages/http/testing",
|
||||
],
|
||||
)
|
||||
|
@ -4,7 +4,6 @@ load("//tools:defaults.bzl", "ng_module")
|
||||
|
||||
ng_module(
|
||||
name = "testing",
|
||||
testonly = 1,
|
||||
srcs = glob(["**/*.ts"]),
|
||||
module_name = "@angular/http/testing",
|
||||
deps = [
|
||||
|
Reference in New Issue
Block a user