se-ui-components
v1.33.0
Published
- Create workspace using command `ng new se-ui-components --create-application=false` - Create library following the command `ng generate library se-ui-components --prefix se` - Add components to the library `ng generate component <componentName> --projec
Downloads
10
Readme
Creating Library
- Create workspace using command
ng new se-ui-components --create-application=false
- Create library following the command
ng generate library se-ui-components --prefix se
- Add components to the library
ng generate component <componentName> --project=se-ui-components
- Export component in library module and public-api.ts
Deploy on NPM
- Build library with the command
ng build se-ui-components --configuration production
- This will create a dist folder with library code in it. Go to that folder and login using npm:
npm login npm publish
Install Library in Project
Run
npm install @angular/cdk primeng primeicons primeflex file-saver xlsx jspdf ngx-toastr
Run
npm install se-ui-components@latest
Library has some peer dependencies that are needed for proper working. Install them with the following command
Add following style sheets to your angular.json
"node_modules/primeng/resources/themes/saga-blue/theme.css", "node_modules/primeng/resources/primeng.min.css", "node_modules/primeicons/primeicons.css", "node_modules/primeflex/primeflex.css", "node_modules/ngx-toastr/toastr.css"