title: Join multiple Coffeescript files into one file? (Multiple subdirectories)
body: <p>I've got a bunch of .coffee files that I need to join into one file.</p>
  
  <p>I have folders set up like a rails app:</p>
  
  <pre><code>/src/controller/log_controller.coffee
  /src/model/log.coffee
  /src/views/logs/new.coffee
  </code></pre>
  
  <p>Coffeescript has a command that lets you join multiple coffeescripts into one file, but it only seems to work with one directory. For example this works fine:</p>
  
  <pre><code>coffee --output app/controllers.js --join --compile src/controllers/*.coffee
  </code></pre>
  
  <p>But I need to be able to include a bunch of subdirectories kind of like this non-working command:</p>
  
  <pre><code>coffee --output app/all.js --join --compile src/*/*.coffee
  </code></pre>
  
  <p>Is there a way to do this? Is there a UNIXy way to pass in a list of all the files in the subdirectories?</p>
  
  <p>I'm using terminal in OSX.</p>
  
  <p>They all have to be joined in one file because otherwise each separate file gets compiled &amp; wrapped with this:</p>
  
  <pre><code>(function() { }).call(this);
  </code></pre>
  
  <p>Which breaks the scope of some function calls.</p>