ember-module-migrator
ember-module-migrator copied to clipboard
Automated migration for new Ember application layout.
Private collections will not work with versions of Ember prior to 2.5.0, we should not migrate to private collections if it is not supported by the Ember version being used.
If {{partial 'foo'}} is found, and 'foo.hbs' is only used once in that location we should move it to a private collection. Not sure exactly which private collection to use...
Not sure exactly how this would look/work, but it may be nice to allow folks to remove portions of the route name from the component name/invocation when it is moved...
Random ideas: - How many components/helpers were moved into private collections? - General stats about remaining component/helper usage by template (perhaps a separate output file with the graph).
Given: ``` app/ components/ modals/ leave-editor.js delete-post.js transfer-owner.js ``` Migrate to: ``` addons/ modals/ leave-editor/ component.js delete-post/ component.js transfer-owner/ component.js ``` This will require template rewriting from `{{modals/leave-editor` to `{{modals::leave-editor`.