title: Combining coffeescript with requirejs
body: <p>What is the best way to combine coffeescript with requirejs ?
  I am confused with coffeescript self invoking function - by default all properties are not visible outside of that function (after compiling ). If I do something like this with requirejs using coffee:</p>
  
  <pre><code>// requirejs module
  define=(do()-&gt;
      this.app = 
          someproperty: "property" // export to global scope
  )
  </code></pre>
  
  <p>Then app object will be globally accessible, and not just inside main require module. </p>
  
  <p>So trying to access app object inside of main require module will fail:</p>
  
  <pre><code>require("modules/modulename",function(name){
      name.app.some // this will fail
      this.app.someproperty // this works but it is global
  })
  </code></pre>
  
  <p>How to make module created with coffeescript visible only inside requirejs main script ?</p>
  
  <p>Thanks</p>