Aurelia TypeScript Samples

Visual Studio 2015 Samples

Setting TSC Compiler Options

You can right click on the project and choose properties and then select the

Other TSC Compler Options

For options not exposed in the project-properties page, you can unload the project and then edit the proj file.

Here is an example for specifying experimental decorators (used by @autoinject):

  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <TypeScriptRemoveComments>false</TypeScriptRemoveComments>
    <TypeScriptSourceMap>true</TypeScriptSourceMap>
    <TypeScriptModuleKind>amd</TypeScriptModuleKind>
    <TypeScriptAdditionalFlags> $(TypeScriptAdditionalFlags) --emitDecoratorMetadata --experimentalDecorators </TypeScriptAdditionalFlags>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <TypeScriptRemoveComments>true</TypeScriptRemoveComments>
    <TypeScriptSourceMap>false</TypeScriptSourceMap>
    <TypeScriptAdditionalFlags> $(TypeScriptAdditionalFlags) --emitDecoratorMetadata  --experimentalDecorators </TypeScriptAdditionalFlags>
  </PropertyGroup>