Added native Bazel build to GUI2. Reduced a lot of the unused Angular CLI structures
Reviewers should look at the changes in WORKSPACE, BUILD, BUILD.bazel, README.md files
This is only possible now as rules_nodejs went to 1.0.0 on December 20
gui2 has now been made the entry point (rather than gui2-fw-lib)
No tests or linting are functional yet for Typescript
Each NgModule now has its own BUILD.bazel file with ng_module
gui2-fw-lib is all one module and has been refactored to simplify the directory structure
gui2-topo-lib is also all one module - its directory structure has had 3 layers removed
The big bash script in web/gui2/BUILD has been removed - all is done through ng_module rules
in web/gui2/src/main/webapp/BUILD.bazel and web/gui2/src/main/webapp/app/BUILD.bazel
Change-Id: Ifcfcc23a87be39fe6d6c8324046cc8ebadb90551
diff --git a/web/gui2/src/main/webapp/index.html b/web/gui2/src/main/webapp/index.html
index d71afe9..aeff5fc 100644
--- a/web/gui2/src/main/webapp/index.html
+++ b/web/gui2/src/main/webapp/index.html
@@ -23,41 +23,18 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="onos.global.css">
- <base href="/">
+ <base href="/onos/ui/">
<title>ONOS</title>
<!-- {INJECTED-USER-START} -->
<!-- {INJECTED-USER-END} -->
- <!-- ONOS UI Framework included here -->
- <!--<script src="onos.js"></script>-->
- <!--<script src="dist/onos.js"></script>-->
-
- <!-- Framework and library stylesheets included here -->
- <!--<link rel="stylesheet" href="dist/onos.css">-->
-
- <!-- Contributed javascript injected here -->
- <!-- {INJECTED-JAVASCRIPT-START} -->
- <!-- {INJECTED-JAVASCRIPT-END} -->
-
- <!-- Contributed stylesheets injected here -->
- <!-- {INJECTED-STYLESHEETS-START} -->
- <!-- {INJECTED-STYLESHEETS-END} -->
-
</head>
<body class="light">
<onos-root></onos-root>
-
-<!--<script>-->
- <!--<!– Inject user agent info into html element to allow CSS sensitivity. –>-->
- <!--(function () {-->
- <!--var t = ('ontouchstart' in window) || ('onmsgesturechange' in window);-->
- <!--d3.select(document.documentElement)-->
- <!--.attr('data-useragent', navigator.userAgent)-->
- <!--.attr('data-platform', navigator.platform)-->
- <!--.classed('touch', t);-->
- <!--}());-->
-<!--</script>-->
+ <script type="module" src="bundle-es2015.min/index.js"></script>
+ <script src="npm/node_modules/zone.js/dist/zone.min.js"></script>
</body>
</html>