This project aims to create a boilerplate for angular libraries. It uses webpack to bundle the library.
Unfortunately angular-cli currently not helping us to create libraries and there are some discussions going around it. Check the discussions under these threads Create boilerplate for library and Library Support and Boilerplate Comment Thread.
Run the following commands
npm install
npm run build:dist
Output files will be created under ./dist/
folder in the following structure.
dist
└───esm
│ └───src
│ │ index.d.ts
│ │ index.js
│ │ └───components
│ │ │ ...
│ │ └───pipes
│ │ │ ...
└───umd
│ angular-lib-exp.js.map
│ angular-lib-exp.js.gz
│ angular-lib-exp.js.map.gz
│ ...
Run npm test
to test the application.