build(bazel): ng_package rxjs/operators rollup config (#22744)

PR Close #22744
This commit is contained in:
Jeremy Elbourn 2018-03-13 11:21:50 -07:00 committed by Kara Erickson
parent 58b94e6f5e
commit 34e355a3b0
1 changed files with 111 additions and 3 deletions

View File

@ -29,18 +29,23 @@ WELL_KNOWN_GLOBALS.update({"rxjs/%s" % s: "Rx" for s in [
"ConnectableObservable",
"Observable",
"Observer",
"Subject",
"Subscription",
"ReplaySubject",
"Scheduler",
"Subject",
"Subscriber",
"Subscription",
"util/EmptyError",
]})
WELL_KNOWN_GLOBALS.update({"rxjs/observable/%s" % s: "Rx.Observable" for s in [
"combineLatest",
"concat",
"defer",
"empty",
"forkJoin",
"from",
"fromEvent",
"fromEventPattern",
"fromPromise",
"forkJoin",
"merge",
"never",
"of",
@ -66,6 +71,109 @@ WELL_KNOWN_GLOBALS.update({"rxjs/operator/%s" % s: "Rx.Observable.prototype" for
"take",
"toPromise",
]})
WELL_KNOWN_GLOBALS.update({"rxjs/operators/%s" % s: "Rx.operators" for s in [
"audit",
"auditTime",
"bufferCount",
"buffer",
"bufferTime",
"bufferToggle",
"bufferWhen",
"catchError",
"combineAll",
"combineLatest",
"concatAll",
"concat",
"concatMap",
"concatMapTo",
"count",
"debounce",
"debounceTime",
"defaultIfEmpty",
"delay",
"delayWhen",
"dematerialize",
"distinct",
"distinctUntilChanged",
"distinctUntilKeyChanged",
"elementAt",
"every",
"exhaust",
"exhaustMap",
"expand",
"filter",
"finalize",
"findIndex",
"find",
"first",
"groupBy",
"ignoreElements",
"isEmpty",
"last",
"map",
"mapTo",
"materialize",
"max",
"mergeAll",
"merge",
"mergeMap",
"mergeMapTo",
"mergeScan",
"min",
"multicast",
"observeOn",
"onErrorResumeNext",
"pairwise",
"partition",
"pluck",
"publishBehavior",
"publish",
"publishLast",
"publishReplay",
"race",
"reduce",
"refCount",
"repeat",
"repeatWhen",
"retry",
"retryWhen",
"sample",
"sampleTime",
"scan",
"sequenceEqual",
"share",
"shareReplay",
"single",
"skip",
"skipLast",
"skipUntil",
"skipWhile",
"startWith",
"subscribeOn",
"switchAll",
"switchMap",
"switchMapTo",
"take",
"takeLast",
"takeUntil",
"takeWhile",
"tap",
"throttle",
"throttleTime",
"timeInterval",
"timeout",
"timeoutWith",
"timestamp",
"toArray",
"windowCount",
"window",
"windowTime",
"windowToggle",
"windowWhen",
"withLatestFrom",
"zipAll",
"zip",
]})
def _rollup(ctx, rollup_config, entry_point, inputs, js_output, format = "es"):