Skip to content

shubhamd99/typescript

Repository files navigation

Typescript Basic's

npm install -g typescript

tsc --init

npm install tsc-init -g

tsc --target es5 script.ts -w

tsc app.ts

tsc -w

npm install --save-dev @types/jquery

------ Modules -------

MUST READ - DON'T SKIP!

In the next lecture, we'll install a package that helps us with loading modules.

Make sure to install SystemJS (that's the package we'll use) < 2.

With a command like this one:

npm install --save systemjs@0.21.5

Execute this command instead of just npm install --save systemjs@

---- For Binding i.e. in Nampspace

tsc app.ts --outFile app.js

Web pack loader

npm install --save-dev webpack ts-loader