Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to run the TypeScript compiler as part of the Azure Git Deploy

I would like to avoid adding the generated JavaScript files to the git source control repository. Does the Azure Git Deploy support running addition commands to run the build before deploying the files?

like image 721
Joe Wood Avatar asked Feb 14 '13 20:02

Joe Wood


People also ask

What command is used to compile a TypeScript file?

Under the covers, we run the TypeScript compiler as a task. The command we use is: tsc -p .

How do I compile TypeScript code?

To compile your TypeScript code, you can open the Integrated Terminal (Ctrl+`) and type tsc helloworld. ts . This will compile and create a new helloworld. js JavaScript file.

How does TypeScript compiler work?

TypeScript is also known as Optionally Statically Typed Language since it gives an option to the compiler to whether or not to include data types associated with the variables or it basically allows us to make the compiler unaware of the type of data or variable etc.


1 Answers

Yes, you can run arbitrary logic using a custom deployment script. You'll need to either include the tools you need in your repo, or preferably download them as needed (to avoid commiting binaries).

like image 147
David Ebbo Avatar answered Sep 21 '22 19:09

David Ebbo