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/app/onos.module.ts b/web/gui2/src/main/webapp/app/onos.module.ts
index f9bbd15..0e8b9ba 100644
--- a/web/gui2/src/main/webapp/app/onos.module.ts
+++ b/web/gui2/src/main/webapp/app/onos.module.ts
@@ -21,31 +21,36 @@
import { OnosRoutingModule } from './onos-routing.module';
import { NavComponent } from './nav/nav.component';
import { OnosComponent } from './onos.component';
-import { Gui2FwLibModule, ConsoleLoggerService, LogService } from 'gui2-fw-lib';
+import {
+ Gui2FwLibModule,
+ ConsoleLoggerService,
+ LogService
+} from '../../../../../gui2-fw-lib/public_api';
import { OnosService } from './onos.service';
/**
* ONOS GUI -- Main Application Module
*/
@NgModule({
- declarations: [
- NavComponent,
- OnosComponent
- ],
- imports: [
- BrowserModule,
- BrowserAnimationsModule,
- HttpClientModule,
- Gui2FwLibModule,
- OnosRoutingModule
- ],
- providers: [
- OnosService,
- { provide: LogService, useClass: ConsoleLoggerService },
- { provide: 'Window', useValue: window }
- ],
- bootstrap: [
- OnosComponent,
- ]
+ declarations: [
+ NavComponent,
+ OnosComponent
+ ],
+ imports: [
+ BrowserModule,
+ BrowserAnimationsModule,
+ HttpClientModule,
+ Gui2FwLibModule,
+ OnosRoutingModule
+ ],
+ providers: [
+ OnosService,
+ {provide: LogService, useClass: ConsoleLoggerService},
+ {provide: 'Window', useValue: window}
+ ],
+ bootstrap: [
+ OnosComponent,
+ ]
})
-export class OnosModule { }
+export class OnosModule {
+}