Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.01 KB

Readme.md

File metadata and controls

34 lines (28 loc) · 1.01 KB

Angular library boilerplate

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.

Building the code

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
│   ...

Testing

Run npm test to test the application.