Hi all,
Hoping to seed some discussion on what’s likely a fuzzy/opinionated/no right answer issue.
When your components/pages dir start to grow a bit unwieldy from running yarn rw g ...
lots, have you developed strong preferences or suggestions or best practice with respect to maintainability and ease of onboarding?
- Do you think its better to build a directory structure that tries to map to user-flows with some utility folders?
- Or go with a utility approach eg, keeping cells together.
- Or just stick with the flat boiler-plate structure and
ctrl
+e
(in VSC) and search by well named components (which I suppose would end up needing some structure anyway) - Or something else?
Thanks in advance.
(I’m currently doing option three as below, but can sense it won’t stay viable with much more complexity (especially when trying to onboard a colleague))
wsl@tonysmachine:~/wsl/monsteraa$ find web/src/components -type d
web/src/components
web/src/components/GameCell
web/src/components/MyTicketDisplay
web/src/components/FullEditGameForm
web/src/components/OSMLocationPicker
web/src/components/CreateClubShortForm
web/src/components/ProfilePictureCell
web/src/components/OSMSearch
web/src/components/ClubGamesTab
web/src/components/GeneralGameForm
web/src/components/StatePagination
web/src/components/ClubProfileCell
web/src/components/Dashboards
web/src/components/Dashboards/DashboardHost
web/src/components/Dashboards/DashboardPlayer
web/src/components/MyClubsCell
web/src/components/FeatureComingSoon
web/src/components/SideBar
web/src/components/ClubMembersCell
web/src/components/FullScreenButton
web/src/components/Landing
web/src/components/Landing/subComponents
web/src/components/ProgressBar
web/src/components/ClubMembersTab
web/src/components/UploadEffectButton
web/src/components/FullNewGameForm
web/src/components/HeaderSideBar
web/src/components/ClubsCell
web/src/components/MyProfileCell
web/src/components/ClubGamesCell
web/src/components/ResponsivePopupWindow
web/src/components/PrettyToggle
web/src/components/LoaderCards
web/src/components/UserProfileCell
web/src/components/UploadClubProfileImageForm
web/src/components/UploadImageForm
web/src/components/HostClubsCell
web/src/components/EmailValidationCell
web/src/components/UserIcon
web/src/components/ClubInfoTab
web/src/components/UrlQueryPagination
web/src/components/ClubProfileImage
web/src/components/NewGameForm
web/src/components/GamesCell
web/src/components/AccountSettingsForm