# NgxReusaAppLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12.

## Code scaffolding

Run `ng generate component component-name --project ngx-reusa-app-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-reusa-app-lib`.
> Note: Don't forget to add `--project ngx-reusa-app-lib` or else it will be added to the default project in your `angular.json` file. 

# Build

##Prerquisite for build:

make sure you have the latest version ( accept all the changes for this library project)
open projects/ngx-reusa-app-lib/package.json
the third line of this file will have version information , like  "version": "0.0.103"
Increase the number by 1 . for example  "version": "0.0.104"
Only after this, run the build command from below

(be inside the reemploy-usa-core )

Run `ng build ngx-reusa-app-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
(this will create the "dist" directory)
# Publishin
## Login into NPM
npm login

> Note: enter your username, password and email id to complete login 

Delete whatever is in the scripts 'reemploy-usa-core\dist\ngx-reusa-app-lib\package.json'

After building your library , go to the folder `cd dist/ngx-reusa-app-lib` and run `npm publish --access public`.

navigate to ( pua-web or claimant-webapp)

run the following command

run npm install @uiapplibct/ngx-reusa-app-lib@<version number>

## Running unit tests

Run `ng test ngx-reusa-app-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## 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).
