Upgrading an Ember CLI app from 2.9 to 2.12
Learn a few tips while watching Sam upgrade EmberMap's codebase
Summary
In this video Sam upgrades EmberMap's codebase from Ember CLI 2.9.1 to 2.12.2. Here are the steps he took:
- Start a new
git
branch to track the upgrade - Run
npm install --save-dev ember-cli@2.12.2
to get the new Ember CLI version into your app'spackage.json
file - Run
ember init
- Work through the file changes, typing
d
for diff, changing files and saving them as you go, until you get them to a point where you're happy with them - The
package.json
upgrade is usually the most involved. We learned how to use the ember-new-output repo to help us out - Once we finish working through
ember init
, we hit some errors. We learn how to isolate which addon is causing the issue - Finally, after upgrading the problematic addon, we work on getting our test suite to pass, which mostly involved working with ESLint configuration