-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
how should we handle config.usePodsByDefault when pods are enabled by default? #2652
Comments
i think we should deprecate the flag and assume pods going forward. |
It would be great if those who have already been using Pods for a while share some tips and/or insights on how to break features down to pods. Sometimes features don't fit nicely into a single "pod" per se. Any insights would be appreciated. Better yet, it'd be great to have some of those "best practices" and insights documented somewhere to help enforce the idea and on-board new devs with this awesome tool. |
@shunchu ya this is a great point. "What is a pod" "how to think about a pod" are great points to attempt to make clear. |
We should probably agree on a name for the "classic" type structure when pods become the default. I think it still makes sense to allow generating blueprints in the original structure, and having a name we could use as a flag would make the transition easier for some people. |
I'm thinking it would be nice to keep the option around, especially when upgrading apps that don't currently use the pod structure. A Boolean called |
Agree with @jakecraige to keep the option around. It´s easier to discover if a project use pods or not. My feedback: I work with various ember-cli projects, and my day-to-day workflow is to open up config/environment.js to see how a project is configured. |
better question, why is the podConfig in the app/config ? seems like a build tool concern. cc @rwjblue |
@stefanpenner This was my fault. I misunderstood something when I was adding it and actually wasn't aware of .ember-cli at the time. |
got time to deprecate and move? ;) |
I'm trying to re-start the pod fleshout effort this weekend. example project -> https://github.com/stefanpenner/ember-jobs |
Awesome. Yeah, I'll take a crack at it, I'm at a resort with my family on a Girl Scouts outing, but they're all asleep so I'll see how far I can get tonight. ;) |
Going with |
Just a note, this issue isn't resolved with moving the config property to This actually goes back to the initial addition of pod support, where it was proposed as a
|
Because of existing options for the route blueprint, I feel that using the shorthands and keeping the current |
I like the Supporting |
I absolutely want to have shorthand options for structure that map to the defined structure. Using
Edited to remove confusion over |
@jgwhite @stefanpenner @rwjblue Thoughts ^^? |
I don't think that we should call the non-pod structure |
But even when pods are default, there will still be several blueprints that generate in the standard type structure because they don't support pod structure. Maybe |
We've been making the move to pods. I like bits of both. Neither quite capture the two most important concepts which i believe are components and resources. Here's my spanner for the works on how i'd structure it. app
Moving to a new default structure would at least mean the usePodsByDefault config wouldn't need to be touched. |
@lukesargeant I'm working on an RFC for a I should note, I still need to determine how much work it would be to make the resolver be configurable (to just pick up new rules and prioritize them). It may not be possible, or something people would be open to. |
@trabus I think to make the resolver configurable devs would have to provide a custom pattern function and then push that cat that pattern on to the front of the default patterns. Devs could write something like this
Internally we would blueprint a subclass of the resolver that did something like.
|
@trabus is working on this and as part of it I'm sure he would include an answer for this, I'm closing this issue in favor of his work. |
When making pods the default project structure in ember-cli, how should we handle the config option
usePodsByDefault
? We have a couple of options.disablePodsByDefault
; (I don't know what to call the opposite of pods.)usePodsByDefault: true
I think that Option 2 is fine, but would love to hear what other people think about it.
/cc @trabus @stefanpenner
The text was updated successfully, but these errors were encountered: