title: Dependency management and build tool for JavaScript
body: <p>I have many JS <strike>snippets and</strike> files shared across multiple projects. I have to either copy-past them into a single file for each project, or serve them as individual files on cdn. Both are bad ideas.</p>
  
  <p>Is there any dependency management and build tool like Maven for JavaScript? Ideally it would take a set of js dependencies and build a single js file which can be served on cdn.</p>
  
  <p>I can write a script to do that. But I'm looking to find if anything comparable to Maven exists for JS.</p>
  
  <hr>
  
  <p>Update 2014: Based on answers here and my research following are most popular tools:</p>
  
  <p>Bower, NPM, RequireJS, Browserify, Webpack, Grunt, Gulp</p>