@jp3tri3/custom-footer
v0.0.2
Published
This library is an example of creating a library to publish to NPM and then import into the main application.
Downloads
4
Readme
Custom-Footer Library
This library is an example of creating a library to publish to NPM and then import into the main application.
Resource followed for creating library: (https://angular.io/guide/creating-libraries)
This library was generated with Angular CLI version 14.0.0.
NOTE: Don't forget to change FooterModule import in app.module for development purposes, to easily make and test changes until ready to publish. This is also noted in app.module.
Code scaffolding
Run ng generate component component-name --project footer
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project footer
.
Note: Don't forget to add
--project footer
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build footer
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build footer
, go to the dist folder cd dist/footer
and run npm publish --access=public
.
Running unit tests
Run ng test footer
to execute the unit tests via Karma.