refactor(bazel): convert most ts_library to ng_module (#22176)

This is necessary so we can produce ng metadata for our packages that are published as libraries

PR Close #22176
This commit is contained in:
Alex Eagle
2018-02-13 08:19:33 -08:00
committed by Victor Berchet
parent 6a57264d38
commit 6597616aac
28 changed files with 56 additions and 50 deletions

View File

@ -1,8 +1,8 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ts_library")
load("//tools:defaults.bzl", "ng_module")
ts_library(
ng_module(
name = "service-worker",
srcs = glob(
[

View File

@ -1,13 +1,14 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ts_library")
load("//tools:defaults.bzl", "ng_module")
ts_library(
ng_module(
name = "testing",
testonly = 1,
srcs = glob(["**/*.ts"]),
module_name = "@angular/service-worker/testing",
deps = [
"//packages/core",
"@rxjs",
],
)

View File

@ -8,6 +8,7 @@ ts_library(
srcs = glob(["**/*.ts"]),
deps = [
"//packages:types",
"//packages/core",
"//packages/service-worker/worker",
"@rxjs",
],

View File

@ -15,6 +15,9 @@
"target": "es2017",
"typeRoots": []
},
"bazelOptions": {
"suppressTsconfigOverrideWarnings": true
},
"files": [
"main.ts",
"src/service-worker.d.ts"