0.1.8 • Published 11 months ago

excel-shared v0.1.8

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

ExcelShared

This project was generated with Angular CLI version 7.1.4.

Development server

Run npm run start for a dev server. Navigate to http://localhost:4200/. 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.

ng g c comparisons-dialog --project=components - replace "comparisons-dialog" with the component of your choosing

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.

Running unit tests

Run npm run test to execute the unit tests via Karma. Angular Testing Guide

Using Locally

  1. In your new portal project, change the package.json line "@excelhealth/shared-components": "0.0.3", to "@excelhealth/shared-components": "../excel-shared/dist/components",. Replace "../excel-shared/dist/components" with the relative library dist directory
  2. npm i in consuming app
  3. ng serve in consuming app
  4. Make changes to your local library, and run npm run watch from the library project root to see changes automatically appear in your new portal local web server.
  5. For easier local development, run npm run start in the library root to take you to the kitchen sink, so you can develop components easily without building each time.

Publishing

  1. Build component library (see above)
  2. navigate to dist/components directory
  3. run npm publish

Helpful hints

  1. npm run buildc -- --watch or npm run watch to watch build the library for local development

  2. For shared component development, you can run the shared component app project, by running ng s or npm run start in this projects root. Compiling / hot reloading will be much faster than linking it to the app project. See app.component.ts for more info!