blob: abd59ec2ade8acdb1bee00a69e627f2f19cb70e4 [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
17load("@npm_angular_bazel//:index.bzl", "ng_module")
Sean Condona3ad7792020-01-04 19:26:34 +000018load("@npm_bazel_karma//:index.bzl", "karma_web_test_suite")
19load("@npm_bazel_typescript//:index.bzl", "ts_library")
Sean Condon98b6ddb2019-12-24 08:07:40 +000020
21package(default_visibility = ["//:__subpackages__"])
22
23# We don't import from these, but the generated ngfactory code will
24NG_FACTORY_ADDED_IMPORTS = [
25 "@npm//@angular/animations",
26 "@npm//@angular/forms",
27]
28
29ng_module(
30 name = "app",
31 srcs = [
32 "nav/nav.component.ts",
33 "onos.component.ts",
34 "onos.module.ts",
35 "onos.service.ts",
36 "onos-routing.module.ts",
37 ],
38 assets = [
39 "onos.common.css",
40 "onos.component.css",
41 "onos.component.html",
42 "nav/nav.component.css",
43 "nav/nav.component.html",
44 "nav/nav.theme.css",
45 ],
Sean Condona3ad7792020-01-04 19:26:34 +000046 tsconfig = "//web/gui2:tsconfig.json",
Sean Condon98b6ddb2019-12-24 08:07:40 +000047 deps = NG_FACTORY_ADDED_IMPORTS + [
48 "//web/gui2-fw-lib",
49 "//web/gui2/src/main/webapp/app/view/apps:gui2-view-apps",
50 "//web/gui2/src/main/webapp/app/view/processor:gui2-view-processor",
51 "//web/gui2/src/main/webapp/app/view/settings:gui2-view-settings",
52 "//web/gui2/src/main/webapp/app/view/partition:gui2-view-partition",
53 "//web/gui2/src/main/webapp/app/view/cluster:gui2-view-cluster",
54 "//web/gui2/src/main/webapp/app/view/device:gui2-view-device",
55 "//web/gui2/src/main/webapp/app/view/link:gui2-view-link",
56 "//web/gui2/src/main/webapp/app/view/host:gui2-view-host",
57 "//web/gui2/src/main/webapp/app/view/flow:gui2-view-flow",
58 "//web/gui2/src/main/webapp/app/view/intent:gui2-view-intent",
59 "//web/gui2/src/main/webapp/app/view/tunnel:gui2-view-tunnel",
60 "//web/gui2/src/main/webapp/app/view/port:gui2-view-port",
61 "//web/gui2/src/main/webapp/app/view/group:gui2-view-group",
62 "//web/gui2/src/main/webapp/app/view/meter:gui2-view-meter",
63 "//web/gui2/src/main/webapp/app/view/pipeconf:gui2-view-pipeconf",
64 "//web/gui2-topo-lib:gui2-topo-lib",
65 "//apps/faultmanagement/fm-gui2-lib:fm-gui2-lib",
66 "//apps/roadm/web/roadm-gui:roadm-gui",
Sean Condond6f95bf2020-01-21 10:10:23 +000067 "//apps/yang-gui/yang-gui2-lib:yang-gui2-lib",
Sean Condon98b6ddb2019-12-24 08:07:40 +000068 "@npm//@angular/core",
69 "@npm//@angular/router",
70 "@npm//@angular/platform-browser",
71 "@npm//rxjs",
72 "@npm//@types",
73 ],
74)