blob: 7d7971eec8b713deb52c8e833ff8105431fd3ab3 [file] [log] [blame]
Sean Condon98b6ddb2019-12-24 08:07:40 +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 Condon436c60a2021-01-01 14:23:29 +000017load("@npm//@bazel/typescript:index.bzl", "ts_library")
Sean Condon98b6ddb2019-12-24 08:07:40 +000018
19package(default_visibility = ["//:__subpackages__"])
20
21# We don't import from these, but the generated ngfactory code will
22NG_FACTORY_ADDED_IMPORTS = [
23 "@npm//@angular/animations",
24 "@npm//@angular/forms",
25]
26
Sean Condon436c60a2021-01-01 14:23:29 +000027ts_library(
Sean Condon98b6ddb2019-12-24 08:07:40 +000028 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 Condon436c60a2021-01-01 14:23:29 +000036 angular_assets = [
Sean Condon98b6ddb2019-12-24 08:07:40 +000037 "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 Condona3ad7792020-01-04 19:26:34 +000044 tsconfig = "//web/gui2:tsconfig.json",
Sean Condon436c60a2021-01-01 14:23:29 +000045 use_angular_plugin = True,
Sean Condon98b6ddb2019-12-24 08:07:40 +000046 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 Condond6f95bf2020-01-21 10:10:23 +000066 "//apps/yang-gui/yang-gui2-lib:yang-gui2-lib",
Davide Scano555617a2020-06-03 21:47:13 +020067 "//apps/inbandtelemetry/intApp-gui2/intApp:intapp-gui2-lib",
Sean Condon98b6ddb2019-12-24 08:07:40 +000068 "@npm//@angular/core",
Sean Condon436c60a2021-01-01 14:23:29 +000069 "@npm//@angular/common",
Sean Condon98b6ddb2019-12-24 08:07:40 +000070 "@npm//@angular/router",
71 "@npm//@angular/platform-browser",
72 "@npm//rxjs",
73 "@npm//@types",
74 ],
75)