2017-12-06 09:56:49 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
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
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "worker",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
|
|
|
exclude = ["main.ts"],
|
|
|
|
),
|
|
|
|
tsconfig = ":tsconfig.json",
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = ["@ngdeps//@types/node"],
|
2017-12-06 09:56:49 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "main",
|
|
|
|
srcs = ["main.ts"],
|
2018-03-30 12:45:42 -04:00
|
|
|
tsconfig = ":tsconfig.json",
|
2017-12-06 09:56:49 -05:00
|
|
|
deps = [":worker"],
|
|
|
|
)
|
2018-03-30 12:45:42 -04:00
|
|
|
|
|
|
|
ng_rollup_bundle(
|
|
|
|
name = "ngsw_worker",
|
|
|
|
entry_point = "packages/service-worker/worker/main.js",
|
|
|
|
deps = [
|
|
|
|
":main",
|
|
|
|
],
|
|
|
|
)
|