jaydz-component-library
v1.1.0
Published
While the component is functional and can be imported via npm, this repo is meant to provide an example of how to go about packaging for npm
Downloads
16
Readme
While the component is functional and can be imported via npm, this repo is meant to provide an example of how to go about packaging for npm
Process
- create module folder under src/app
- generate module component. ng generate component modules/header
- import header module into app.module.ts
- import
- add to imports array
- install ng packagr
- npm install ng-packagr --save-dev
- add ng-package.json at root of project
- add public_api.ts to /src
- export Header Module from this file
- export * from './app/modules/header/header.module';
- add "packagr" to package.json scripts
- change "private" to false
- run npm run packagr
- navigate to dist folder
- cd dist
- run npm publish
Relevant files
- added
- removed
- git-ignored
- altered
Simple color palette Font palette