diff --git a/ui/README.md b/ui/README.md index d68ff074..db4d503b 100644 --- a/ui/README.md +++ b/ui/README.md @@ -2,31 +2,37 @@ This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.3.2. -## Running with [Nodejs](https://nodejs.org) - -Execute `npm start` to serve the Angular app using nodejs. Navigate to `http://localhost:8080`. This command is meant for production and the files in the `dist` directory will have to be recompiled for code changes to be displayed. - -## Development server - -Execute `npm start -- -d` for a development server. Navigate to `http://localhost:8080/`. The app will automatically reload if you change any of the source files. - ## Code scaffolding Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. ## Build -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. +If you have maven installed run `mvn clean install`, this will install the YARN and dependency resolve your modules and build and test your project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. + +You can also run `ng build` locally to build. ## Running unit tests -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). +In addtion to above maven test, you can also Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). ## Running end-to-end tests Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). Before running the tests make sure you are serving the app via `ng serve`. +## Building the "Data Services NPM Component" locally + +Run `ng build beetle-studio-lib`, this will generate a `dist/lib` folder which will have the required files for publishing. + +## Publishing the "Data Services NPM Component" to NPM.JS +``` +ng build beetle-studio-lib +cd dist/lib +npm login +npm publish +``` + ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/ui/pom.xml b/ui/pom.xml index f8235e56..50f0228a 100644 --- a/ui/pom.xml +++ b/ui/pom.xml @@ -126,7 +126,33 @@ - + + + maven-clean-plugin + + + + node_modules + + ** + + + + node + + ** + + + + dist + + ** + + + + false + +