1 # Copyright 2020 The Pigweed Authors
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 # use this file except in compliance with the License. You may obtain a copy of
7 # https://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations under
15 package(default_visibility = ["//visibility:public"])
17 load("@npm//@bazel/typescript:index.bzl", "ts_library")
18 load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
19 load("//pw_web_ui:web_bundle.bzl", "web_bundle")
20 load("@npm//@bazel/karma:index.bzl", "karma_web_test")
23 name = "device_transport_lib",
25 "device_transport.ts",
33 name = "serial_mock_lib",
38 "//pw_web_ui/types:serial_lib",
40 "@npm//@types/jasmine",
46 name = "web_serial_transport_lib",
48 "web_serial_transport.ts",
51 ":device_transport_lib",
52 "//pw_web_ui/types:serial_lib",
58 name = "web_serial_transport_lib_test",
60 "web_serial_transport_test.ts",
64 ":web_serial_transport_lib",
66 "@npm//@types/jasmine",
72 name = "web_serial_transport_lib_test_bundle",
74 ":web_serial_transport_lib_test",
76 entry_point = "web_serial_transport_test.ts",
83 ":web_serial_transport_lib_test_bundle"