title: CoffeeScript - watch and compile "*.coffee" files with a prefix
body: <p>I would like to compile CoffeeScript files in a directory and output the files with a prefix (<code>.coffee</code> in my case).</p>
  
  <p>For instance, I have this file structure :</p>
  
  <ul>
  <li>fileA.js</li>
  <li>fileB.js</li>
  <li>filaA.coffee</li>
  <li>fileB.coffee</li>
  </ul>
  
  <p>I want to be able to compile (and watch) <code>*.coffee</code> files, and compile them like so :</p>
  
  <ul>
  <li>fileA.js</li>
  <li>fileB.js</li>
  <li>filaA.coffee</li>
  <li>fileB.coffee</li>
  <li>.coffee.fileA.js</li>
  <li>.coffee.fileB.js</li>
  </ul>
  
  <p>Note that the <code>.js</code> files are unchanged.
  How can I do that (preferably in my bash shell) ?</p>
  
  <p>So that would be the equivalent of the following hardcoded solution, but for all <code>.coffee</code> files in a directory :</p>
  
  <p><code>coffee --watch --compile -p myfile.coffee &gt; .coffee.myfile.js</code></p>