Skip to content

Boilerplate project for creating angular libraries using webpack

Notifications You must be signed in to change notification settings

msusur/angular-library-boilerplate

Repository files navigation

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.

About

Boilerplate project for creating angular libraries using webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published