Skip to content

cankayacan/ngx-library-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngx-library-starter

Angular >2 library starter with

  • AOT compilation.
  • Support for external templates and SCSS files.
  • Rollup bundling

Usage

  • Replace all "ngx-library-starter" with "your-library-name".
  • Rename "LibModule" to "YourLibraryNameModule"

and then

npm i
npm run build

How to work with Demo

Demo project references the library from parent directory.

When you have changes to the library you still have to remove the library files and install again simply by

cd demo
rm -R node_modules/your-library-name
npm i

How to make Demo working

cd demo
npm i
npm start

Navigate to the http://localhost:3040

To publish your npm module

Finally

npm login
npm publish

TODO

  • AOT compilation
  • Rollup bundling
  • Minify / Uglify
  • Demo project
  • Bundle component SASS files
  • Bundle component templates
  • Bundle styleUrls with multiple styles
  • Bundle global styles
  • CLI/Generator e.g. yo?

About

Angular >2 library stater with rollup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published