Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 1 | """ |
| 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 Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 17 | load("@npm//@bazel/typescript:index.bzl", "ts_library") |
| 18 | |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 19 | package(default_visibility = ["//:__subpackages__"]) |
| 20 | |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 21 | load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") |
| 22 | |
| 23 | sass_binary( |
| 24 | name = "yangtable-styles", |
| 25 | src = ":lib/yangtable/yangtable.component.scss", |
| 26 | ) |
| 27 | |
| 28 | sass_binary( |
| 29 | name = "yangtable-theme", |
| 30 | src = ":lib/yangtable/yangtable.theme.scss", |
| 31 | ) |
| 32 | |
| 33 | sass_binary( |
| 34 | name = "yangdetails-styles", |
| 35 | src = ":lib/yangdetails/yangdetails.component.scss", |
| 36 | ) |
| 37 | |
| 38 | sass_binary( |
| 39 | name = "yangdetails-theme", |
| 40 | src = ":lib/yangdetails/yangdetails.theme.scss", |
| 41 | ) |
| 42 | |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 43 | ts_library( |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 44 | name = "yang-gui2-lib", |
| 45 | srcs = glob( |
| 46 | include = [ |
| 47 | "**/*.ts", |
| 48 | ], |
| 49 | exclude = [ |
| 50 | "**/*.spec.ts", |
| 51 | ], |
| 52 | ), |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 53 | angular_assets = [ |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 54 | ":yangtable-styles", |
| 55 | ":yangdetails-styles", |
| 56 | ":yangtable-theme", |
| 57 | ":yangdetails-theme", |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 58 | "//web/gui2-fw-lib:extra_css", |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 59 | ] + glob([ |
| 60 | "**/*.html", |
| 61 | ]), |
| 62 | tsconfig = "//web/gui2:tsconfig.json", |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 63 | use_angular_plugin = True, |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 64 | deps = [ |
| 65 | "//web/gui2-fw-lib", |
| 66 | "@npm//@angular/animations", |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 67 | "@npm//@angular/common", |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 68 | "@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 | ) |