Talk 24-05-2016 Programmers in Padua by Daniele Morosinotto
- Presentation (created using reveal.js) give a quick intro to Typescript, more infos can be found on official site
- Samples code use Typescript to show how annotations can help discovering bugs in js and correct them using TS, and show different way to compile and bundle the same app modules written in TS using: namespace , amd + requirejs , commonjs + browserify , webpack and systemjs.
- An then you can preview a sample of future Typescript 2.0 features: controlFlow and strictNullCheck - NOTE: to run it you need to install locally
typescript@next
and point VSCode to use it!
Install Node.js and Typescript npm i -g typescript
+ plugin for your favorite editor (see official page) +
global install peer-dependencies:
npm i -g typings // tool to get .d.ts for external library like jquery
npm i -g http-server // developer tool to host local server on current dir
cd samples/proj_dir
npm install
npm start
open your favorite browser http://localhost:8080