TypeScript in The Build Process 9 exercises
Problem

Automating TypeScript Compilation

Let's continue from where we left off.

Currently, every time we make a change to our TypeScript file, we have to manually run tsc to generate the new JavaScript file.

There's got to be a better way!

Challenge

Your job is to review the tsc CLI options to determine how to automate the Type

Loading exercise

Transcript

00:00 In this exercise, we're starting from where we left off from the previous exercise. But this one, we're trying to make our development process a bit better. The way it's currently working is we're basically having to every time we make a change inside here, we're having to run TSC in order to get the new JavaScript file out.

00:17 Then we can open it in the browser and check that what we've got is real. So if we say hello world inside here, got to run TSC again, then I go inside here and it says hello world. Great. It would be great if we could automate one of the parts of this, which was running TSC. Your job is to work out if there is a continuous watch mode that we can use with

00:39 TypeScript in order to make sure that whenever our TypeScript code changes, our JavaScript code also gets emitted. Good luck.