2018-10-04 16:14:14 -04:00
|
|
|
load("//tools:defaults.bzl", "ng_rollup_bundle", "ts_library")
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2017-12-06 09:56:49 -05:00
|
|
|
ts_library(
|
|
|
|
name = "worker",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
2019-06-19 00:26:53 -04:00
|
|
|
exclude = [
|
|
|
|
"main.ts",
|
|
|
|
],
|
2017-12-06 09:56:49 -05:00
|
|
|
),
|
2019-02-20 12:54:42 -05:00
|
|
|
deps = ["@npm//@types/node"],
|
2017-12-06 09:56:49 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "main",
|
|
|
|
srcs = ["main.ts"],
|
|
|
|
deps = [":worker"],
|
|
|
|
)
|
2018-03-30 12:45:42 -04:00
|
|
|
|
|
|
|
ng_rollup_bundle(
|
|
|
|
name = "ngsw_worker",
|
2019-06-07 16:38:06 -04:00
|
|
|
entry_point = ":main.ts",
|
2018-03-30 12:45:42 -04:00
|
|
|
deps = [
|
|
|
|
":main",
|
|
|
|
],
|
|
|
|
)
|