-
Notifications
You must be signed in to change notification settings - Fork 440
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
Make MirageJS peer dependency #2417
Conversation
insertShutdownIntoDestroyApp: function () { | ||
if (fs.existsSync('tests/helpers/destroy-app.js')) { | ||
var shutdownText = | ||
' if (window.server) {\n window.server.shutdown();\n }'; | ||
return this.insertIntoFile('tests/helpers/destroy-app.js', shutdownText, { | ||
after: "run(application, 'destroy');\n", | ||
}); | ||
} | ||
}, | ||
|
||
afterInstall: function () { | ||
return this.insertShutdownIntoDestroyApp(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was removed as destoy-app.js
was removed in 3.0.0
"@ember/test-helpers": "*", | ||
"ember-data": "*", | ||
"ember-qunit": "*" | ||
"ember-qunit": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be *
?
Would you be opposed to adding Husky. I have it on my own apps so keep forgetting to run lint and prettier prior to submitting PRs :) |
This is a good change, without it people cannot reliably adopt the new pattern that is documented for 3.0 (importing directly from miragejs). |
# Conflicts: # packages/ember-cli-mirage/package.json # test-packages/01-basic-app/package.json # test-packages/02-app-that-excludes-mirage/package.json
Make MirageJS peer dependency
This makes
MirageJS
a peer dependency. This is a breaking change. Any existing applications usingember-cli-mirage
will have to rerun the default blueprintember install ember-cli-mirage
or addmiragejs
to yourpackage.json
mannually.Fixes: #2416