2017-12-06 09:56:49 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
2018-03-30 12:45:42 -04:00
|
|
|
load("//packages/bazel/src:ng_rollup_bundle.bzl", "ng_rollup_bundle")
|
2017-12-06 09:56:49 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "worker",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
|
|
|
exclude = ["main.ts"],
|
|
|
|
),
|
|
|
|
tsconfig = ":tsconfig.json",
|
|
|
|
)
|
|
|
|
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
)
|