I'm building up a new project that will consist of a central API, which a number of different sub-projects will link into.
For simplicity's sake, let's say that part of the functionality of the whole platform is to get an image's metadata. This might happen in the core API, or on either the server or front-end of one of the sub-projects.
import getImageMetaData from 'getImageMetadata'; // it's within node_modules const resource = 'http://example.com/image.jpg' const metaData = getImageMetaData(resource); ...
Is the simplest way simply giving this module its own github repo, then including it in
package.json on all of the different sides of the service, and constantly run (using hooks or whatever)
npm install upgrade my-package?
Any smart ways to keep this all in sync? Preferably as automated as possible ~ there might be up to a dozen of the front-end sub-projects, and I want to be sure that I can fix all of them at once.