TypeScript & EmberJS

Dawid Pośliński                  @PoslinskiNet

                  @PoslinskiNet

Why?
How?
Samples

                  @PoslinskiNet

TARGET / Goal

- Easier to refactor a complex logic (especially for large applications)

 

- Glimmer uses TypeScript

WHY? 

                  @PoslinskiNet

Pros

types, interfaces...                                     get errors quicker

 

 

WHY? 

                 @PoslinskiNet

CONS

- Different mindset (if no experience with typed languages)

 

 

 

 

- Not fully integrated yet, there are some compatibility issues

WHY? 

                 @PoslinskiNet

HOW? 

Install

1. Compiler

 

     $ npm install -g typescript

 


2. CLI package

 

     $ ember install ember-cli-typescript

                  @PoslinskiNet

HOW? 

IDE

Good news...

                @PoslinskiNet

HOW? 

problems?

1. Repository

 

     https://github.com/emberwatch/ember-cli-typescript

     (incremental adoption section)


2. Slack

 

     https://embercommunity.slack.com/

     #topic-typescript

              @PoslinskiNet

examples 

Where TO GO

Playground

     https://www.typescriptlang.org/play/

 

Various .ts examples

     https://github.com/Microsoft/TypeScriptSamples/


Glimmer

     https://github.com/glimmerjs/glimmer-application

 

Sample Application

     https://gitlab.com/pixelhandler/on-boarding

                 @PoslinskiNet

thanks

Dawid Pośliński                  @PoslinskiNet

http://poslinski.net

spread the word...

Made with Slides.com