title: TypeScript bundling and minification?
body: <p>Assume I have two files</p>
  
  <p>AFile.ts</p>
  
  <pre><code>/// &lt;reference path="ZFile.ts" /&gt;
  new Z().Foo();
  </code></pre>
  
  <p>ZFile.ts</p>
  
  <pre><code>class Z
  {
      Foo() { }
  }
  </code></pre>
  
  <p>Is there a way to generate all scripts in a single <code>js</code> file in the order it requires (need <code>ZFile</code> before <code>AFile</code> to get the definition of <code>Z</code>)?</p>