Speaker Deck

Writing code to update our code - Wicked Good Ember

by Adolfo Builes

Published June 16, 2015 in Programming

After upgrading Ember we might have times where we start to receive warnings about things that we should update in our code because of deprecations.
We can write scripts with tools like sed or Perl to fix our code but, when we are working with multiple teams and projects, we can see that those scripts start to fail or are not easy to maintain.
In this talk we’ll cover a different approach to update our code through direct operations on its abstract syntax tree (AST) using recast and how to distribute our solutions as addons so they can be used by other teams.
Specifically we’ll see how AST transform are used for scenarios like:
- Route generation in ember-cli
- Update QUnit tests via ember-watson
- Upgrade Ember-Data deprecations