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 | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 17 | load("@npm//@bazel/typescript:index.bzl", "ts_library") |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 18 | |
| 19 | package(default_visibility = ["//:__subpackages__"]) |
| 20 | |
| 21 | # We don't import from these, but the generated ngfactory code will |
| 22 | NG_FACTORY_ADDED_IMPORTS = [ |
| 23 | "@npm//@angular/animations", |
| 24 | "@npm//@angular/forms", |
| 25 | ] |
| 26 | |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 27 | ts_library( |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 28 | name = "app", |
| 29 | srcs = [ |
| 30 | "nav/nav.component.ts", |
| 31 | "onos.component.ts", |
| 32 | "onos.module.ts", |
| 33 | "onos.service.ts", |
| 34 | "onos-routing.module.ts", |
| 35 | ], |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 36 | angular_assets = [ |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 37 | "onos.common.css", |
| 38 | "onos.component.css", |
| 39 | "onos.component.html", |
| 40 | "nav/nav.component.css", |
| 41 | "nav/nav.component.html", |
| 42 | "nav/nav.theme.css", |
| 43 | ], |
Sean Condon | a3ad779 | 2020-01-04 19:26:34 +0000 | [diff] [blame] | 44 | tsconfig = "//web/gui2:tsconfig.json", |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 45 | use_angular_plugin = True, |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 46 | deps = NG_FACTORY_ADDED_IMPORTS + [ |
| 47 | "//web/gui2-fw-lib", |
| 48 | "//web/gui2/src/main/webapp/app/view/apps:gui2-view-apps", |
| 49 | "//web/gui2/src/main/webapp/app/view/processor:gui2-view-processor", |
| 50 | "//web/gui2/src/main/webapp/app/view/settings:gui2-view-settings", |
| 51 | "//web/gui2/src/main/webapp/app/view/partition:gui2-view-partition", |
| 52 | "//web/gui2/src/main/webapp/app/view/cluster:gui2-view-cluster", |
| 53 | "//web/gui2/src/main/webapp/app/view/device:gui2-view-device", |
| 54 | "//web/gui2/src/main/webapp/app/view/link:gui2-view-link", |
| 55 | "//web/gui2/src/main/webapp/app/view/host:gui2-view-host", |
| 56 | "//web/gui2/src/main/webapp/app/view/flow:gui2-view-flow", |
| 57 | "//web/gui2/src/main/webapp/app/view/intent:gui2-view-intent", |
| 58 | "//web/gui2/src/main/webapp/app/view/tunnel:gui2-view-tunnel", |
| 59 | "//web/gui2/src/main/webapp/app/view/port:gui2-view-port", |
| 60 | "//web/gui2/src/main/webapp/app/view/group:gui2-view-group", |
| 61 | "//web/gui2/src/main/webapp/app/view/meter:gui2-view-meter", |
| 62 | "//web/gui2/src/main/webapp/app/view/pipeconf:gui2-view-pipeconf", |
| 63 | "//web/gui2-topo-lib:gui2-topo-lib", |
| 64 | "//apps/faultmanagement/fm-gui2-lib:fm-gui2-lib", |
| 65 | "//apps/roadm/web/roadm-gui:roadm-gui", |
Sean Condon | d6f95bf | 2020-01-21 10:10:23 +0000 | [diff] [blame] | 66 | "//apps/yang-gui/yang-gui2-lib:yang-gui2-lib", |
Davide Scano | 555617a | 2020-06-03 21:47:13 +0200 | [diff] [blame] | 67 | "//apps/inbandtelemetry/intApp-gui2/intApp:intapp-gui2-lib", |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 68 | "@npm//@angular/core", |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 69 | "@npm//@angular/common", |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 70 | "@npm//@angular/router", |
| 71 | "@npm//@angular/platform-browser", |
| 72 | "@npm//rxjs", |
| 73 | "@npm//@types", |
| 74 | ], |
| 75 | ) |