How can you keep one copy of your utility code and let multiple consumer components use and deploy it?

Technology CommunityCategory: Software ArchitectureHow can you keep one copy of your utility code and let multiple consumer components use and deploy it?
VietMX Staff asked 3 years ago

Once you start growing and have different components on different servers which consumes similar utilities, you should start managing the dependencies .

There is a tool for that, it’s called npm or nuget. Start by wrapping 3rd party utility packages with your own code to make it easily replaceable in the future and publish your own code as private npm package. Now, all your code base can import that code and benefit free dependency management tool. It’s possible to publish npm packages for your own private use without sharing it publicly using private modules, private registry or local npm packages