-
Notifications
You must be signed in to change notification settings - Fork 287
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
EmberDebug vs Ember Inspector #339
Comments
I am not 100% sure exactly how much work maintaining them separately would be, but it seems to be a better long term solution. @teddyzeenny - Do you have a feel for how difficult development would be separate? Are they completely intertwined, or could we manage them like we do HTMLBars and Ember itself (when we build Ember we include the specific version of HTMLBars we need and all is well)? |
@rwjblue I need to look into it some more. I'll get a better idea once I try splitting them up, but yeah, I think it may be similar to how we include HTMLBars. It's more analogous to having an Ember app and its API in separate repos, but bundling the Ember app into the API code before deployment so the API sever can serve index.html (but the other way round in this case). Adding any feature most definitely requires working on both repos. Keeping the versions in sync would probably be best. One complication I can think of is that we have multiple builds (for each browser) with different adapters. We currently build 4 versions of Ember Inspector/Ember debug pairs. I'm thinking we would probably make the EmberDebug repo unaware of this and make it extensible, keeping the multiple dist complexity in Ember inspector alone which would extend EmberDebug with adapter specific code before bundling it (similar to how Ember configures RSVP's async function to use the run loop). |
@teddyzeenny @locks @rwjblue do we still think splitting this up is a good idea? I think we could probably do this, and maybe even further splitting if we wanted, as part of making inspector extensible. |
Now that we have ember-try running for EmberDebug, I believe the main idea behind the need for this issue is solved. Closing due to lack of response, but if there is desire to split things up still, feel free to reopen. |
What They Are
The repo currently contains two different code bases which are EmberDebug and the Ember Inspector app. Both are completely isolated (even run in different runtime environments in production).
Communication between them goes through adapters that use methods like
window.postMessage
, and websockets. The relation between them may be similar to the one between an Ember app and its api.Build Process
EmberDebug and Ember Inspector have separate builds.
Brocfile.js
. It ends up asember_debug.js
file in thedist
directories.The only shared build part is the tests which use Ember Cli's test build, though the tests are separated into different directories and no test accesses both.
Downsides of sharing a test environment
Ember.A
) will cause unnecessary overhead. EmberDebug has to work with prototype extensions disabled, and tests should run without them.Possible Solutions
ember-try and ember-disable-prototype-extensions are perfect for EmberDebug but cannot be applied to Ember Inspector.
The text was updated successfully, but these errors were encountered: