NPM Publish Locally

John Peters - Jun 25 '20 - - Dev Community

In Angular, we create libraries; which, follow the NPM architecture for creating packages. We simply build them using

  ng build --prod 
Enter fullscreen mode Exit fullscreen mode

NPM Pack Creates the tarball

Alt Text

This zipped file is ready to integrate with the NPM System.

Import to Another Project

In another project, use


    npm i folderpath/custom-element-0.0.1.tgz

Enter fullscreen mode Exit fullscreen mode

OtherProject/Node_Modules

Alt Text

JWP2020

Private NPM Packages,
NPM Packages Folder

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player