惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
IT之家
IT之家
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
V
V2EX
N
Netflix TechBlog - Medium
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Blog of Author Tim Ferriss
量子位
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
月光博客
月光博客
F
Fortinet All Blogs

Ember.js Blog

Ember 7.0 Released Announcing the Official TypeScript Types Public Preview Accessibility Working Group Update The 2020 Ember Roadmap Countdown to The New Year - Built-in Addons Countdown to The New Year - Ember Exam Countdown to The New Year - Ember Code Snippet Countdown to The New Year - Ember Changeset Countdown to The New Year - Ember In Viewport Countdown to The New Year - Ember CLI Update Countdown to The New Year - Ember Template Invocation Location Countdown to The New Year - Ember Bootstrap and Ember Paper Countdown to The New Year - Ember CSS Modules Countdown to The New Year - Ember Mapbox GL Countdown to The New Year - Ember Shepherd Countdown to The New Year - Ember Template Lint Countdown to The New Year - Ember Composable Helpers Countdown to The New Year - Ember Leaflet Countdown to The New Year - Ember Intl Countdown to The New Year - Ember Test Selectors Countdown to The New Year - Ember Power Select Countdown to The New Year - Ember Simple Auth Countdown to The New Year - Ember SVG Jar Countdown to The New Year - Ember Page Title Countdown to The New Year- Ember A11Y Testing Countdown to The New Year - Ember Angle Brackets Codemod Countdown to The New Year - Ember CLI Sass Countdown to The New Year - Ember Animated Countdown to The New Year - Ember Auto Import Countdown to The New Year - Ember Concurrency
Countdown to The New Year - Ember CLI TypeScript
2019-12-24 · via Ember.js Blog

– By James Davis

This is the 24th part of our DecEmber series–"Countdown to The New Year: 31 Days of Ember Addons". Highlighting a new addon each day until the new year starts, we hope you enjoy learning together with us!

Day 24

Today we are going to take a look at writing apps in TypeScript - using ember-cli-typescript.

What It Does

The ember-cli-typescript addon sets up everything you need to start using TypeScript in your Ember apps and addons. This includes not only configuring Babel to handle TypeScript, but build-time type-checking, in-browser type error reporting, and a whole set of custom blueprints for generating TypeScript versions of everything from routes and controllers to services to components. ember-cli-typescript also helps addon authors write their addons in TypeScript by handling automatic precompilation and type definition generation when publishing.

Why I Like It

Static typing is a lifesaver, especially in ambitious apps with complex structures and many moving parts. It helps speed up development with rich autocompletion and by catching type errors right in your editor and during the build. It provides a saftey net when refactoring or upgrading that I, frankly, wouldn't want to develop without. And addons written in TypeScript are a joy to use because they ship with type definitions that help guarantee you are using them correctly.

I like ember-cli-typescript because it handles all of the Ember + TypeScript integration for you and provides a very good set of defaults. It has great documentation, not only on how to use ember-cli-typescript, but on how to use TypeScript effectively with Ember. And to top it off, an amazing communuty of strong typers has formed around ember-cli-typescript and many of these individuals can be found on the Ember Community Discord in #e-typescript ready to answer your Ember + TypeScript questions!

Do you use ember-cli-typescript? Or something else to use TypeScript (or another language) with Ember? We'd love to hear about Ember addons you love for DecEmber in the comments below!