I'll try to be as specific as possible.
We work with TFS and we use typescript for client-side scripts.
When we develop locally we can do everything perfectly normal but the problem es whith the published websites from TFS.
The problem is that when we want to do a deploy, or if we want to automatize it, we need to do a workaround because under _PublishedWebsites typescript seems to not pile anything, and the scripts folder only contains the .ts files.
For now, the workaround is to go to the build folder and copy from there the .js files. This workaround works for now but I think the ideal scenario would be to have the .js files generated under the _PublishedWebsites folder.
We've tried different options but we couldn't find a solution yet, also the information found around is not very huge.
Any help would be appreciated.
Thanks.
EDIT: we are using VS 2013 and latest TFS and Typescript version. The ts files are added in a MVC project.
I'll try to be as specific as possible.
We work with TFS and we use typescript for client-side scripts.
When we develop locally we can do everything perfectly normal but the problem es whith the published websites from TFS.
The problem is that when we want to do a deploy, or if we want to automatize it, we need to do a workaround because under _PublishedWebsites typescript seems to not pile anything, and the scripts folder only contains the .ts files.
For now, the workaround is to go to the build folder and copy from there the .js files. This workaround works for now but I think the ideal scenario would be to have the .js files generated under the _PublishedWebsites folder.
We've tried different options but we couldn't find a solution yet, also the information found around is not very huge.
Any help would be appreciated.
Thanks.
EDIT: we are using VS 2013 and latest TFS and Typescript version. The ts files are added in a MVC project.
I had the same problem and the following worked for me:
Example:
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />
Fixed automatically with the latest update!
How are you trying to deploy or automate it?
If you are just doing a web deploy, or a similar deployment through visual studio, then keeping the javascript files as part of the solution should solve this.
If you are doing continuous integration with TFS, or doing another automated build, you need to install TypeScript on the build server and run the piler on bulid.
Another option(which i have done when i did not have access to the build server) is to copy the TypeScript piler into the TFS project and check it in and point the project to the new location.
Some more possibly helpful information is available here: http://manfredlange.blogspot.co.nz/2014/01/aspnet-mvc-typescript-azure-website-and.html