Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using mirage in a pre-ember-cli app #641

Closed
snovity opened this issue Mar 15, 2016 · 12 comments
Closed

Using mirage in a pre-ember-cli app #641

snovity opened this issue Mar 15, 2016 · 12 comments

Comments

@snovity
Copy link

snovity commented Mar 15, 2016

Hi. My goal is to port non-CLI Ember 1.1 app to Ember 2.x. Currently there is no working back-end for the apps, so I though I would use mirage to mock a back-end for both of them to speed up transitioning. Is there any way of using mirage in that old non-CLI Ember 1.1 app?

@samselikoff
Copy link
Collaborator

There is no dist build of Mirage currently. If you wanted, you could look
at compiling down index.js (or some other way of including the core files
under /addon) and then looking at the Initializer to see how to instantiate
a Mirage server (basically new Server(options)).

On Tue, Mar 15, 2016 at 9:59 AM Dima Lashkov notifications@github.com
wrote:

Hi. My goal is to port non-CLI Ember 1.1 app to Ember 2.x. Currently there
is no working back-end for the apps, so I though I would use mirage to mock
a back-end for both of them to speed up transitioning. Is there any way of
using mirage in that old non-CLI Ember 1.1 app?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#641

@snovity
Copy link
Author

snovity commented Mar 15, 2016

@samselikoff thanks for the prompt answer, will try to do that

@n8n8baby
Copy link

@snovity Did you have any success with this? I am in the same boat...

@snovity
Copy link
Author

snovity commented May 27, 2016

@n8n8baby It was not easy, but I was able to do it, I used https://github.com/ef4/ember-giftwrap plus backported three Ember functions isNone, isEmpty, isBlank. Also had to drop the nice Ember CLI imports and revert to old school global naming of factories and scenarios. And certainly there was some luck involved when matching Ember & Mirage versions that would successfully produce a gitfwrapped Mirage...

@snovity
Copy link
Author

snovity commented May 27, 2016

@n8n8baby If you need this stuff, I can create a repo with giftwrapped Mirage version and instructions of how to integrate it into the old Ember app

@n8n8baby
Copy link

@snovity That would be great if you could do that. Thanks a million!

@snovity
Copy link
Author

snovity commented Jun 13, 2016

@n8n8baby sorry for the delay, here is the repo https://github.com/snovity/mirage-giftwrapped

@n8n8baby
Copy link

n8n8baby commented Jul 9, 2016

Finally getting around to checking it out. Thanks again!

@n8n8baby
Copy link

n8n8baby commented Jul 9, 2016

Works like a charm. You are, indeed, the MAN! :)

@n8n8baby
Copy link

n8n8baby commented Jul 9, 2016

Are you looking for a job?

@snovity
Copy link
Author

snovity commented Jul 13, 2016

hey @n8n8baby, nope, not looking, sorry :)

@n8n8baby
Copy link

Can't blame a man for trying :) Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants