This library requires the following 3rd party libraries be install on the consuming application
- npm i ngx-toastr
- npm i file-saver
- npm i json2csv
CommonUI
This library was generated with Angular CLI version 9.1.12.
Code scaffolding
Run ng generate component component-name --project common-ui
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project common-ui
.
Note: Don't forget to add
--project common-ui
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build common-ui --prod
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
You need to login to npm. Run npm login
and provide username, password, email, then your one-time password will be sent via email.
After building your library, go to the dist folder cd dist/common-ui
and run npm publish --access=public
.
Running unit tests
Run ng test common-ui
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.