-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add minimal app template #2205
base: main
Are you sure you want to change the base?
Add minimal app template #2205
Conversation
import Resolver from 'ember-resolver'; | ||
import config from './config/environment'; | ||
|
||
const templates = import.meta.glob(`templates/**/*`, { eager: true }); |
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 isn't exactly what I'd want to do in a personal app, but if no components are in the templates folder, it seems ok -- probably wouldn't be compat with route splitting
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.
I think we can probably do a new feature of @embroider/router
that lets you configure the route splitting directly in your app/router.js
, and that code would directly do the corresponding import.meta.glob
s.
But also, even v2 addons can put things into @embroider/virtual/compat-modules
, so maybe continuing to use that here makes sense.
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.
yea, that's a good point -- services are the obvious annoying-to-do-manually thing.
maybe this has gone too minimal!
1bbaf0d
to
4d0779a
Compare
There's lots more to delete, but that can happen after you have passing tests. |
4d0779a
to
6ea29c2
Compare
Outstanding issues
ember-qunit pulls on ember-cli-test-loader
importing v2 addons fails in esbuild - repo
full error, regarding `@ember/test-helpers` (a v2 addon)
Something is still looking for an env: