There is some rather good tooling and documentation, but one problem for me was making it work from inside my SharePoint Projects after I installed TypeScript. The way that the SharePoint tools run, they do the deployment before the TypeScript compiler runs. That’s not exactly helpful, however, you can fix this. First, you’re going to need to right click on your project file and unload it.
Next, you need to right click it again and edit the project file (TypeScriptFarmTest.csproj)
Then you need to modify your Project node to include a new InitialTargets attribute pointing to TypeScriptCompile:
<Project ToolsVersion=“4.0“ DefaultTargets=“Build“ xmlns=“http://schemas.microsoft.com/developer/msbuild/2003“ InitialTargets=“TypeScriptCompile“>
Then you’ll need to insert into the inside of this node a new Targets node:
<Target Name=“TypeScriptCompile“ BeforeTargets=“Build“>
<Message Text=“Compiling TypeScript…“ />
<Exec Command=“"$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc" -target ES5 @(TypeScriptCompile ->’"%(fullpath)"‘, ‘ ‘)“ />