Upgrade to Pro — share decks privately, control downloads, hide ads and more …

EmberConf2019-Recap.pdf

 EmberConf2019-Recap.pdf

Frédéric Soumaré

March 27, 2019
Tweet

More Decks by Frédéric Soumaré

Other Decks in Programming

Transcript

  1. The idea: Compiling Ember code into more“vanilla” patterns: •leverage ES

    modules, •node_modules resolution •static and dynamic import https://github.com/embroider-build/embroider/blob/master/SPEC.md
  2. ember-cli-typescript • Build-time type checking • Break the build if

    you want when types do not check • Sets up the basic type definitions you’ll need for Ember framework objects • Blueprints • Produce a nice syntax highlighted Type Error
  3. FAQs ❓ Do I have to convert everything at once?

    Nope! ✅
 
 Where do I start? • the "leaf nodes" in your dependency graph • data models • Services which don’t inject anything else • ES modules with no other imports • Then work back through your dependency graph
  4. Precompile to JS so consuming apps don’t need to use

    TypeScript Include type definition as well What about addons ❓
  5. New syntax and concepts to learn
 https://basarat.gitbooks.io/typescript/ Type definitions for

    third-party addons Type definitions for Ember and Ember Data Ask questions on #e-typescript Pain Points