Updating Ember CLI
$ npm install -g ember-cli-update
$ ember-cli-update
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:
Updating QUnit tests:
- https://github.com/rwjblue/ember-qunit-codemod
- https://github.com/simonihmig/ember-test-helpers-codemod
Removing jQuery dependency:
- https://github.com/simonihmig/ember-native-dom-helpers-codemod
- https://github.com/cibernox/ember-native-dom-helpers
Converting andThen to async/await:
$ ember install [email protected]
Ember test selectors:
QUnit dom:
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