PiP - Better JS with TS
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@nextand point VSCode to use it!
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
To try samples:
cd samples/proj_dir npm install npm start
open your favorite browser http://localhost:8080