0.0.0 • Published 3 years ago

se-ui-toolkit-test v0.0.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Creating Library

  • Create workspace using command ng new se-ui-toolkit-test --create-application=false
  • Create library following the command ng generate library se-ui-toolkit-test --prefix se
  • Add components to the library ng generate component <componentName> --project=se-ui-toolkit-test
  • Export component in library module and public-api.ts

Deploy on NPM

  • Build library with the command ng build se-ui-toolkit-test --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-toolkit-test@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"