Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typescript in VS2012: (automatically) generating .js from .ts

Tags:

I've added file1.ts and I can see there's a dependent to it - namely file1.js.

I notice that any changes I made to file1.ts - file1.js doesn't get automatically re-generated.

The only workaround I have at the moment is by calling tsc.exe - as part of pre-build event.

My question is - are there any better workaround or maybe a setting somewhere I might've missed ?

like image 607
YS. Avatar asked Oct 02 '12 02:10

YS.


1 Answers

Install the Web Essentials 2012 extension in Visual Studio 2012.

It will re-generate the .js file on every save of the .ts file.

http://visualstudiogallery.msdn.microsoft.com/07d54d12-7133-4e15-becb-6f451ea3bea6

like image 156
Lakerfield Avatar answered Sep 17 '22 15:09

Lakerfield