ember-cli-migrator icon indicating copy to clipboard operation
ember-cli-migrator copied to clipboard

Support migrating "basic" classes eg. "App.Route" to "app/routes/basic"

Open joeruello opened this issue 10 years ago • 1 comments

We have a fairly large app (50+ routes) where we have added a App.Route to encapsulate common functionality. Currently, the migrator will migrate Route.js to -.js, and all other routes will try and import app\routes\-.

According to http://www.ember-cli.com/#using-modules it should be migrated to app/routes/basic

We also do the same with views/components/controllers, but I think (hope) that this is a general clause in the resolver rather than something route specific.

Happy to work on a PR, is there anyone I can bounce ideas and questions off?

joeruello avatar Apr 17 '15 04:04 joeruello

I feel like we would probably need to hard code/edge case this. https://github.com/fivetanley/ember-cli-migrator/blob/master/lib/typed-export.js#L94 seems like the function you would want to modify

igorT avatar Apr 17 '15 21:04 igorT