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
@ -16,28 +16,41 @@ load("//packages/bazel/src:esm5.bzl", "esm5_outputs_aspect", "ESM5Info")
|
||||
# TODO(alexeagle): this list is incomplete, add more as material ramps up
|
||||
WELL_KNOWN_GLOBALS = {
|
||||
"@angular/core": "ng.core",
|
||||
"@angular/core/testing": "ng.core.testing",
|
||||
"@angular/common": "ng.common",
|
||||
"@angular/compiler": "ng.compiler",
|
||||
"@angular/compiler/testing": "ng.compiler.testing",
|
||||
"@angular/platform-browser": "ng.platformBrowser",
|
||||
"@angular/platform-browser/testing": "ng.platformBrowser.testing",
|
||||
"@angular/platform-browser-dynamic": "ng.platformBrowserDynamic",
|
||||
}
|
||||
WELL_KNOWN_GLOBALS.update({"rxjs/%s" % s: "Rx" for s in [
|
||||
"BehaviorSubject",
|
||||
"ConnectableObservable",
|
||||
"Observable",
|
||||
"Observer",
|
||||
"Subject",
|
||||
"Subscription",
|
||||
"ReplaySubject",
|
||||
"util/EmptyError",
|
||||
]})
|
||||
WELL_KNOWN_GLOBALS.update({"rxjs/observable/%s" % s: "Rx.Observable" for s in [
|
||||
"concat",
|
||||
"defer",
|
||||
"from",
|
||||
"fromEvent",
|
||||
"fromPromise",
|
||||
"forkJoin",
|
||||
"merge",
|
||||
"never",
|
||||
"of",
|
||||
"throw",
|
||||
]})
|
||||
WELL_KNOWN_GLOBALS.update({"rxjs/operator/%s" % s: "Rx.Observable.prototype" for s in [
|
||||
"catch",
|
||||
"concatAll",
|
||||
"concatMap",
|
||||
"do",
|
||||
"every",
|
||||
"first",
|
||||
"filter",
|
||||
@ -45,8 +58,12 @@ WELL_KNOWN_GLOBALS.update({"rxjs/operator/%s" % s: "Rx.Observable.prototype" for
|
||||
"map",
|
||||
"mergeAll",
|
||||
"mergeMap",
|
||||
"publish",
|
||||
"reduce",
|
||||
"share",
|
||||
"startWith",
|
||||
"switchMap",
|
||||
"take",
|
||||
"toPromise",
|
||||
]})
|
||||
|
||||
@ -238,7 +255,7 @@ def ng_package_outputs(name, entry_point):
|
||||
# we assume the files should be named "package.*.js"
|
||||
basename = entry_point.split("/")[-2] if entry_point.find("/") >=0 else name
|
||||
return {
|
||||
"fesm5": "%s.js" % basename,
|
||||
"fesm5": "fesm5/%s.js" % basename,
|
||||
"fesm2015": "fesm2015/%s.js" % basename,
|
||||
"umd": "%s.umd.js" % basename,
|
||||
"umd_min": "%s.umd.min.js" % basename,
|
||||
|
Reference in New Issue
Block a user