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?
Under the covers, we run the TypeScript compiler as a task. The command we use is: tsc -p .
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With