title: Compile CoffeeScript to particular Javascript file
body: <p>I'm new to using CoffeeScript and this is my first time trying it out. I have two questions.</p>
  
  <ol>
  <li><strong>Compile to particular file</strong></li>
  </ol>
  
  <p>I want to compile a particular <code>coffee</code> file to <code>javascript</code> on the fly.</p>
  
  <p>To do this, I've done the following:</p>
  
  <pre><code>coffee -w -o controllers/loginCtrl.js -c coffeescripts/loginCtrl.coffee
  </code></pre>
  
  <p>This gives me </p>
  
  <pre><code>ENOENT, open 'c:\path\to\public\testassets\js\controllers\loginCtrl.js\loginCtrl.js'
  </code></pre>
  
  <p>I believe this is happening because the js file already exists. If I remove the js file, the same command creates a folder called <code>loginCtrl.js</code> and then adds a file inside it. </p>
  
  <p>How do I get coffeeScript to compile to a particular existing file or to a proper path?</p>
  
  <ol start="2">
  <li><strong>Remove unneeded code from compiled file</strong></li>
  </ol>
  
  <p>Assuming that the file gets compiled, the new js file gets compiled as </p>
  
  <pre><code>(function() {
  ....  
  }).call(this);
  </code></pre>
  
  <p>Is it possible for me to remove the first and last lines of this compiled code? </p>