From the course: SharePoint Framework for Developers: 1 Understanding the Toolchain

Unlock the full course today

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

Set up a simple TypeScript project

Set up a simple TypeScript project

From the course: SharePoint Framework for Developers: 1 Understanding the Toolchain

Start my 1-month free trial

Set up a simple TypeScript project

- [Instructor] The most major frameworks including SharePoint framework have already wired in support for typescript in their project templates. That doesn't mean we don't need to understand how things work behind the scenes so let's go ahead and set up a bare bones vanilla typescript project and let's see and understand how typescript works. So I'm going to go ahead and create a new folder here, let's call this typescript and inside here I'll go ahead and create a new package.json on npm based project. The dash dash yes basically means accept all the defaults and write out a package.json though I do need typescript in here and remember we're going to transpile so what runs in the browser is javascript but I need typescript and dev type so I'm going to take a dem dependency on typescript so let's go ahead and add that and let's just go ahead with the latest version. I'll add a couple of other node packages, one will be concurrently because concurrently allows me to run more than one…

Contents