Angular Libraries

Cristian Marquez

 

@thecapnews

/in/cristian-marquez/

https://hackernoon.com/@xthecapx

¿What's a Library?

Angular CLI

$ ng new <Project> --create-application=false

$ cd <Project>
$ ng generate library <lib-name>
$ ng generate application <showcase>

Library Project

Library

Showcase

Library Project

Library

Showcase

Local, GitHub, docs, ...

NPM

$ ng build <lib>
$ npm adduser
$ cd dist/<lib>
$ npm publish

Coding Time

Made with Slides.com