Wednesday, 3 January 2018

Developing on a module that is used within another project?

Hey guys, wasn't sure how to word the title but I'll describe the issue I'm having.I have two projects, one being dependant on the other (say A is some server project that depends on module B, which is also used in other projects). B is a package in package.json that points to a Github repository, which is to be installed when A is deployed.Now, at the moment, as I work on A, I may make want to make changes to B, so my flow has been:Modify Bcd /path/of/A && npm install BRestart A to apply changesOr (if I want to do something really quick):Modify B within node_modules and remember itRestart A to apply changesObviously this is terrible, but I don't exactly know of a better way to approach this, so I was wondering if anyone else had a better way of doing this? Thanks

Submitted January 03, 2018 at 11:05PM by cruzcontrol56

No comments:

Post a Comment