excel-shared v0.1.5
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:4202/
. 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
.
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.
Run ng build components
to build a new version of the component library.
From Sherman npm run buildc
From Albert - watch and sync to APP ng b components --watch
Using Locally
- 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 npm i
in new portalng serve
in new portal- Make changes to your local library, and run
ng build components
from the library project root to see changes automatically appear in your new portal local web server. - 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
- Build component library (see above)
- navigate to dist/components directory
- run
npm publish
Generate new component
ng g c comparisons-dialog --project=components
- replace "comparisons-dialog" with the component of your choosing
Helpful hints
npm run buildc -- --watch