From the course: TypeScript for Node.js Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Compiling and automation, part 1

Compiling and automation, part 1

From the course: TypeScript for Node.js Developers

Start my 1-month free trial

Compiling and automation, part 1

- [Instructor] Now that we're benefiting from using typescript with our file extensions converted to the format, we have a new problem. If we run an application, our project will crash. We need a way to automate the process of properly compiling our project and then run it. And, I'd like to have all this scripted with our MPN start command. So let's take a look at this. So the first thing we'll need to do is install a few things. So what I want to install first and lets do an npm install or I is ts node and we'll install it globally. So the ts node will allow us to run the project with typescript so once we actually compile our code from typescript to JavaScript, so we want something that we'll be able to run the typescript compiled code into JavaScript so ts node allows us to do that. And, as you remember, we need to do sudo in these cases. Once you have ts node installed, we need to install types for typescript so node JS, express, and a few other libraries actually created types…

Contents