Compiling TypeScript files on Azure Web Apps

Your TypeScript project shouldn’t have JavaScript files in the repository. It may be problematic when you want to deploy your site from git repo on Azure Web Apps. You may consider adding some custom scripts, but there is a better way: use npm postinstall.

I have created a simple TypeScript project, put it on github, and deployed to tscpostinstall.azurewebsites.net

You can check out how to deploy Azure Web App from github in one of my Azure Tips & Tricks videos: