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 | |
| 17 | package(default_visibility = ["//:__subpackages__"]) |
| 18 | |
| 19 | load("@npm_angular_bazel//:index.bzl", "ng_module") |
| 20 | load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") |
| 21 | |
| 22 | sass_binary( |
| 23 | name = "yangtable-styles", |
| 24 | src = ":lib/yangtable/yangtable.component.scss", |
| 25 | ) |
| 26 | |
| 27 | sass_binary( |
| 28 | name = "yangtable-theme", |
| 29 | src = ":lib/yangtable/yangtable.theme.scss", |
| 30 | ) |
| 31 | |
| 32 | sass_binary( |
| 33 | name = "yangdetails-styles", |
| 34 | src = ":lib/yangdetails/yangdetails.component.scss", |
| 35 | ) |
| 36 | |
| 37 | sass_binary( |
| 38 | name = "yangdetails-theme", |
| 39 | src = ":lib/yangdetails/yangdetails.theme.scss", |
| 40 | ) |
| 41 | |
| 42 | ng_module( |
| 43 | name = "yang-gui2-lib", |
| 44 | srcs = glob( |
| 45 | include = [ |
| 46 | "**/*.ts", |
| 47 | ], |
| 48 | exclude = [ |
| 49 | "**/*.spec.ts", |
| 50 | ], |
| 51 | ), |
| 52 | assets = [ |
| 53 | ":yangtable-styles", |
| 54 | ":yangdetails-styles", |
| 55 | ":yangtable-theme", |
| 56 | ":yangdetails-theme", |
| 57 | ] + glob([ |
| 58 | "**/*.html", |
| 59 | ]), |
| 60 | tsconfig = "//web/gui2:tsconfig.json", |
| 61 | deps = [ |
| 62 | "//web/gui2-fw-lib", |
| 63 | "@npm//@angular/animations", |
| 64 | "@npm//@angular/core", |
| 65 | "@npm//@angular/forms", |
| 66 | "@npm//@angular/platform-browser-dynamic", |
| 67 | "@npm//@angular/router", |
| 68 | "@npm//@types", |
| 69 | "@npm//rxjs", |
| 70 | ], |
| 71 | ) |