concept dependency management in category javascript

appears as: dependency magement
JavaScript Application Design: A Build First Approach

This is an excerpt from Manning's book JavaScript Application Design: A Build First Approach.

You’ll learn more about package management solutions (npm, Bower, and Component) in section 5.4. Before we get there, we’ll look at dependency management, or how to deal with the components needed by your application, and how different libraries can help manage them.

5.3. Using dependency management

We’ll discuss two kinds of dependency management here: internal and external. When talking about internal dependencies, I’m referring to those that are part of the program you’re writing. Most frequently, these are a one-to-one mapping to physical files, but you might also have multiple modules in a single file. By modules I mean pieces of code that have a single responsibility, regardless of them being services, factories, models, controllers, or something else. External dependencies are, in contrast, those in which the code isn’t governed by your application itself. You may own or have authored the package, but the code belongs to a different repository altogether, regardless.