Skip to content

Latest commit

 

History

History
99 lines (64 loc) · 1.66 KB

UPDATE.md

File metadata and controls

99 lines (64 loc) · 1.66 KB

Update old Ember.js project

Updating Ember CLI

$ npm install -g ember-cli-update
$ ember-cli-update

Codemod packages

Add eslint

$ npm install --save-dev eslint-plugin-ember
// .eslintrc.js
module.exports = {
  plugins: [
    'ember'
  ],
  extends: [
    'eslint:recommended',
    'plugin:ember/recommended' // or 'plugin:ember/base'
  ],
  rules: {
    // override rules' settings here
  }
}
$ ./node_modules/.bin/eslint --fix
$ npm install ember-modules-codemod -g

Converting to new module import syntax:

Removing .get() - Ember 3.1:

Removing Ember.K:

New Testing API

Updating QUnit tests:

Removing jQuery dependency:

Converting andThen to async/await:

$ ember install [email protected]

Ember test selectors:

QUnit dom:

New filestructure layout

Migrator:

Generate new app with the new structure:

  • Install Ember CLI canary
$ npm install -g ember-cli/ember-cli
MODULE_UNIFICATION=true ember new my-app