Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +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 | 0bd777c | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 17 | load("@npm//@bazel/typescript:index.bzl", "ts_library") |
| 18 | |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 19 | package(default_visibility = ["//:__subpackages__"]) |
| 20 | |
Sean Condon | 0bd777c | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 21 | ts_library( |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 22 | name = "roadm-gui", |
| 23 | srcs = glob( |
| 24 | include = [ |
| 25 | "**/*.ts", |
| 26 | ], |
| 27 | exclude = [ |
| 28 | "**/*.spec.ts", |
| 29 | ], |
| 30 | ), |
Sean Condon | 0bd777c | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 31 | angular_assets = [ |
| 32 | "//web/gui2-fw-lib:extra_css", |
| 33 | ] + glob([ |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 34 | "**/*.css", |
| 35 | "**/*.html", |
| 36 | ]), |
Sean Condon | a3ad779 | 2020-01-04 19:26:34 +0000 | [diff] [blame] | 37 | tsconfig = "//web/gui2:tsconfig.json", |
Sean Condon | 0bd777c | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 38 | use_angular_plugin = True, |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 39 | deps = [ |
| 40 | "//web/gui2-fw-lib", |
| 41 | "@npm//@angular/animations", |
Sean Condon | 0bd777c | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 42 | "@npm//@angular/common", |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 43 | "@npm//@angular/core", |
| 44 | "@npm//@angular/forms", |
| 45 | "@npm//@angular/platform-browser-dynamic", |
| 46 | "@npm//@angular/router", |
| 47 | "@npm//@types", |
| 48 | "@npm//rxjs", |
| 49 | ], |
| 50 | ) |