How to compile multiple ts files to a single js file

Topics: General
Apr 16, 2013 at 6:19 AM
Hi, I know I can compile multiple ts files into a single js file using tsc.exe. However, is there a way to configure this in Visual Studio or something in the csproj file to have the same effect?
Thanks
Apr 16, 2013 at 11:06 AM
Edit your csproj file (the one with the C# icon in Windows, not the VS icon, that's the user preferences) and edit the Debug/Release blocks:
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <TypeScriptTarget>ES5</TypeScriptTarget>
    <TypeScriptIncludeComments>true</TypeScriptIncludeComments>
    <TypeScriptSourceMap>false</TypeScriptSourceMap>
    <TypeScriptOutFile>phaser.js</TypeScriptOutFile>
  </PropertyGroup>
So they have an OutFile value.