=============================== == ONOS GUI2 Web Application == =============================== || || Lazy loads \/ =================================== == FM GUI2 LIB module (incl ...) == == Alarm Table Component == == Alarm Details Component == =================================== || || Depends \/ ============================= == GUI2 FW Lib == == Web Sockets, LION etc == =============================
This project was generated with Angular CLI version 6.0.0.
A couple of good articles on the creation and use of libraries in Angular 6 is given in:
The Angular Library Series - Creating a Library with the Angular CLI
and
The Angular Library Series - Building and Packaging
The Bazel build of this library handles the building and packaging of the library so that other projects and libraries can use it.
To build the library project using Angular CLI run 'ng build --prod fm-gui2-lib' inside the ~/onos/apps/faultmanagement/fm-gui2-lib folder
To make the library in to an NPM package use 'npm pack' inside the dist/fm-gui2-lib folder
To build the app that surrounds the library run 'ng build'. This app is not part of the ONOS GUI and is there as a placeholder for testing the library
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files. NOTE If you make changes to files in the library, the app will not pick them up until you build the library again
Run ng generate component <component-name> --project=fm-gui2-lib
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.