title: How to output javascript in both a standalone and a dependency file in a gulp workflow
body: <p>I have lots of small projects I have developed in javascript that can be used as a standalone script or as a dependency for other scripts. If all my scripts have <code>module.exports = ObjName</code> at the end of them so that they can be used as a resource in a CommonJS environment they will generate errors when used as a standalone script in a web environment.</p>
  
  <p>Considering that I am using Gulp workflows to develop my scripts what is that best way to build a version as a dependency and a version for standalone web integration? </p>
  
  <p>Are their any good examples of libraries doing this on github?</p>