How to use NPM LINK?

preview_player
Показать описание
In this video we look at how to use NPM LINK to speed up application development when using a package that we are developing also.
Рекомендации по теме
Комментарии
Автор

Thank you this video was very good short and informative.

dmnd
Автор

Very easy and to the point explanation. thanks a ton for the tutorial.

guruprakashmishra
Автор

Thanks a lot Sir, This is helping me a lot

venkataramanan
Автор

Great work. Actually looking for it. I had to copy-paste the entire lib code into the example to actually test it. Now I can test my lib in a much better and faster way. THANKS!!!

nitishprasad
Автор

It seems like this will work if there's no build step in your npm package. Any idea how you would approach this if you needed to build your package each time you make a change (say building TypeScript into a /dist folder) and then getting those changes to reflect in your main project? I guess I need to figure out how to link to the a dist folder.

BrandonClapp
Автор

Amazing!! this is incredible, I am wondering for example the case now if locally as "usingSimple" depends on "simple" how could you use "usingSimple" on a third library...lets call it "using-usingSimple"?

PatoDeVille
Автор

Great trick for dev work without publishing. Just wondering is there a way to unlink as well or would a simple delete work?

RickyPatnaik
Автор

UsingSImple still needs to have simple in package.json. What would be our workflow? Remove node_modules in UsingSimple, just comment "simple" : "*" in package.json, install all dependencies again, npm link it with simple when developing, and uncomment simple in package.json when pushing UsingSimple to repo. RIght?

aleksandrpetrov