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
From the course: SharePoint Framework for Developers: 1 Understanding the Toolchain
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
What is TypeScript?2m 17s
-
(Locked)
Set up a simple TypeScript project7m 31s
-
(Locked)
TypeScript transpilation and sourcemaps4m 16s
-
(Locked)
TypeScript type checking and .d.ts files3m 20s
-
(Locked)
TypeScript modules and renaming across modules2m 40s
-
(Locked)
TypeScript classes ES3 vs. ES20154m 2s
-
(Locked)
-
-
-