title: Why exclude wwwroot from tsconfig?
body: <p>I'm working with a TypeScript project using an ASP.NET 5 template in VS.NET 2015. I added a <code>scripts/tsconfig.json</code> file and it contains the following <code>exclude</code> section by default:</p>
  
  <pre><code>  "exclude": [
      "node_modules",
      "wwwroot"
    ]
  </code></pre>
  
  <p>However going through tutorials I've also seen that I should configure the TypeScript build output to the following directory:</p>
  
  <pre><code>"outDir": "../wwwroot"
  </code></pre>
  
  <p>Stating the definition of <code>exclude</code> from the official <a href="https://github.com/Microsoft/TypeScript/wiki/tsconfig.json" rel="nofollow">TypeScript wiki</a>:</p>
  
  <blockquote>
    <p>If the "exclude" property is specified, the compiler includes all
    TypeScript (*.ts or *.tsx) files in the containing directory and
    subdirectories except for those files or folders that are excluded.</p>
  </blockquote>
  
  <p>My confusion is since the <code>tsconfig.json</code> file applies settings to the virtual typescript project within the folder where it is located, and mine is within the <code>/scripts</code> folder, do I still need that setting? Why would I exclude <code>wwwroot</code> and why was that setting added automatically? I don't plan on having a <code>wwwroot</code> folder within my <code>/scripts</code> folder, so I'm trying to understand why it should be excluded? Or is it added by default since I <em>could</em> of added my <code>tsconfig.json</code> folder to the root of my project and in that case one would want to exclude the <code>wwwroot</code> folder?</p>