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:
Alex Eagle
2018-03-07 11:26:11 -08:00
committed by Kara Erickson
parent b26a90567c
commit 1e6cc42a01
33 changed files with 207 additions and 237 deletions

View File

@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ts_library")
load("//tools:defaults.bzl", "ts_library", "ng_package")
ts_library(
name = "compiler",
@ -12,3 +12,16 @@ ts_library(
),
module_name = "@angular/compiler",
)
ng_package(
name = "npm_package",
srcs = ["package.json"],
entry_point = "packages/compiler/compiler.js",
secondary_entry_points = [
"testing",
],
deps = [
":compiler",
"//packages/compiler/testing",
],
)

View File

@ -4,7 +4,6 @@ load("//tools:defaults.bzl", "ts_library")
ts_library(
name = "testing",
testonly = 1,
srcs = glob(["**/*.ts"]),
module_name = "@angular/compiler/testing",
deps = [