title: How to concat AMD modules so they work in non-amd environment too?
body: <p>I wrote a library with requirejs. Now I would like to build a distribute version of it where concat all files into a "mylib.dist.js" file. 
  Problem: My library should also work in non-requirejs environments. 
  jQuery for example goes this way too. Every file in the <code>src</code> directory is a amd-module. In the build-process the code will we restructured somehow. They have wrote an own <code>build.js</code> file for this purpose.
  Is there a library out there which can handle this for me out of the box? Or do I need to write my own build like jQuery Team?</p>