I am a seasoned C# developer. I have been teaching myself nodejs etc. I am trying to find some information on code reuse. However, I have been searching and not finding information about reusing code that I am looking for... Can someone point me to the right place to look?
In c# I can write a lib that can then be shared and reused to build other apps. All the docs I found talks about publishing code to a git repository, then use npm to pull it down. Is the only other way copy/paste code files? I am sure there are companies out there that have proprietary code, how are they solving this? Are they just not using nodejs?
Thank you for your time
UPDATE/EDIT: I tried adding file path inside of package.json like so:
{
"name": "starter",
"version": "1.0.0",
"dependencies": {
"@angular/common": "^2.4.6",
"@angular/core": "^2.4.6",
"bower": "^1.8.0",
"rxjs": "^5.1.0",
"typescript": "^2.1.5",
"zone.js": "^0.7.6",
"SimpleTest" : "file:///C:\\me\\Code\\nodecommon",
got this to work. the trick is I have to make the common code a node package. This will copy or update my folders.