-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Core] Folder structure proposal #3670
Comments
I really like this idea.
|
even the docs site 👍 I really like this 👍 👍 😍 |
@oliviertassinari I think that's a great idea! |
@alitaheri Thanks, this is looking awesome 👍 Let me know if you need any hand with a publish script etc |
@oliviertassinari I must be missing something here. What do we get by nesting everything under
(Other than renaming |
Aside from being more coherent with |
Yeah this is what I had in mind too 👍: https://github.com/newoga/material-ui/tree/monorepo-directories/src/packages/material-ui I would even consider not having the I think we can borrow the project structure and scripts pretty heavily from recompose, I think it does a pretty good job setting this up. |
Without
|
I'm fine without |
Going back to the original proposed structure, where do the base themes go? Not
(and presumably |
@mbrookes The lightBaseTheme doesn't really need to be external as it's the default, how about just putting the dark on the root, and the lightBaseTheme... well we shove it in getMuiTheme 😆 I was also thinking, there is no need to have spacing, zIndex, typography files while we can just put them inside the getMuiTheme!
|
@oliviertassinari Sorry, I had closed in favour of #2679, but you're right, this is a subset of that issue. |
After having a good discussion with @mbrookes we came up with this proposal on how we should structure our folders to make imports easier and to express what's internal and what's not:
Some notes:
styles
andutils
under thesrc
folder!internal
foldersrc
folder with flat structuresrc
foldersrc
foldersrc/internal
folderThis will help us easily write publish script to put everything under the root folder before publishing.
And the end result will have absolutely flat structure, helps users do this:
Ain't that beautiful? @callemall/material-ui? 😍
The text was updated successfully, but these errors were encountered: