blob: 38d2e14a069010e9e0f8a7a1dcf457208d3ab430 [file] [log] [blame]
Sean Condond6f95bf2020-01-21 10:10:23 +00001"""
2 Copyright 2020-present Open Networking Foundation
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15"""
16
Sean Condon0bd777c2021-01-01 14:23:29 +000017load("@npm//@bazel/typescript:index.bzl", "ts_library")
18
Sean Condond6f95bf2020-01-21 10:10:23 +000019package(default_visibility = ["//:__subpackages__"])
20
Sean Condond6f95bf2020-01-21 10:10:23 +000021load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
22
23sass_binary(
24 name = "yangtable-styles",
25 src = ":lib/yangtable/yangtable.component.scss",
26)
27
28sass_binary(
29 name = "yangtable-theme",
30 src = ":lib/yangtable/yangtable.theme.scss",
31)
32
33sass_binary(
34 name = "yangdetails-styles",
35 src = ":lib/yangdetails/yangdetails.component.scss",
36)
37
38sass_binary(
39 name = "yangdetails-theme",
40 src = ":lib/yangdetails/yangdetails.theme.scss",
41)
42
Sean Condon0bd777c2021-01-01 14:23:29 +000043ts_library(
Sean Condond6f95bf2020-01-21 10:10:23 +000044 name = "yang-gui2-lib",
45 srcs = glob(
46 include = [
47 "**/*.ts",
48 ],
49 exclude = [
50 "**/*.spec.ts",
51 ],
52 ),
Sean Condon0bd777c2021-01-01 14:23:29 +000053 angular_assets = [
Sean Condond6f95bf2020-01-21 10:10:23 +000054 ":yangtable-styles",
55 ":yangdetails-styles",
56 ":yangtable-theme",
57 ":yangdetails-theme",
Sean Condon0bd777c2021-01-01 14:23:29 +000058 "//web/gui2-fw-lib:extra_css",
Sean Condond6f95bf2020-01-21 10:10:23 +000059 ] + glob([
60 "**/*.html",
61 ]),
62 tsconfig = "//web/gui2:tsconfig.json",
Sean Condon0bd777c2021-01-01 14:23:29 +000063 use_angular_plugin = True,
Sean Condond6f95bf2020-01-21 10:10:23 +000064 deps = [
65 "//web/gui2-fw-lib",
66 "@npm//@angular/animations",
Sean Condon0bd777c2021-01-01 14:23:29 +000067 "@npm//@angular/common",
Sean Condond6f95bf2020-01-21 10:10:23 +000068 "@npm//@angular/core",
69 "@npm//@angular/forms",
70 "@npm//@angular/platform-browser-dynamic",
71 "@npm//@angular/router",
72 "@npm//@types",
73 "@npm//rxjs",
74 ],
75)