Angular Library: Create an Angular Library And Publish It In NPM

preview_player
Показать описание
In this video, you will see how to create an #angular #library and publish it in the #NPM.
More specifically, you will learn that the steps to publish and install and package from NPM, are the following:

- Create a user
- Login both in the NPM UI and in the terminal
- Build the library
- Publish the library
- Install it

✨ Useful commands:
# NPM login
- npm adduser

# NPM verify that you are logged in
- npm whoami

# To build a library
- ng build my-lib

# To publish a library
- ng publish (please note that you have to "cd" into the dist directory of the library)

******************************************************
Let's connect
******************************************************

#angular #angularlibrary #library #angulartutorial #workspace #angularworkspace #polyrepo #npmproxy #npm
Рекомендации по теме
Комментарии
Автор

Perfect, just what I needed to see. Nice and clear

novarse
Автор

This is the first time I see npmjs' homepage. Great content by the way!

jorgerincon
Автор

thank you for the insightful video ! :D

TheCMajorth
Автор

This is awesome! I was able to create my library *ngx-disable-during-ajax*. Thanks for your help ☺️

CodingAbroad
Автор

Current version of Angular is 14, can I make a library that can be used by angular 8 and above now.. What would be the procedure..

basudevadhikari
Автор

This is great. Can i use that to publish my angular standqlone components using material?
So o can reuse on my otjer projects?

wiliam
visit shbcf.ru