stefanpenner / ember-app-kit

deprecated: see https://github.com/stefanpenner/ember-cli
MIT License
1.02k stars 231 forks source link

Ember CLI Migration Guide #632

Closed ulisesrmzroche closed 10 years ago

ulisesrmzroche commented 10 years ago

This PR will provide a guide for migrating your project from Ember App Kit to Ember CLI. A working draft should be finished by this Saturday.

ulisesrmzroche commented 10 years ago

Should we remove the Future Goals section?

ulisesrmzroche commented 10 years ago

Actually, at first I tried running ember-init and checking to see if I could just figure it out from the diff, but I wound up breaking stuff. Is this doable though? Like migrating the project using ember init?

stefanpenner commented 10 years ago

@ulisesrmzroche yes -> https://twitter.com/alexanderhclark/status/467138972918222848

ulisesrmzroche commented 10 years ago

The major steps are now detailed, using ember init atop an existing EAK project. The rest is stuff like importing your dependencies from your Brocfile and fixing some module imports in the test helpers which I'll write notes about right now.

I'm also going to be editing and cleaning up the grammar so its an enjoyable read. For sure, it looks like it's gonna make the Saturday estimate.

ulisesrmzroche commented 10 years ago

Am I on the right track with this right now?

WMeldon commented 10 years ago

@ulisesrmzroche I would put a not about using import { moduleFor, test } from 'ember-qunit'; instead of import { moduleFor, test } from 'appkit/tests/helpers/module-for';.

resolver and start-app still live in /helpers, but the module-for stuff has been extracted into it's own package.

One other thing is to make it clear that if you never bothered to change your application namespace from appkit, running ember init not-appkit will break any import from appkit/*s you may have.

fsmanuel commented 10 years ago

@WMeldon EAK does the import from ember-qunit at least in master.

@ulisesrmzroche the last point @WMeldon mentioned is important

@MajorBreakfast @stefanpenner @rjackson @twokul @abuiles can someone review?

ulisesrmzroche commented 10 years ago

This one's just pending review.

fsmanuel commented 10 years ago

@ulisesrmzroche thanks a lot!