This will be weird. I have pretty aggravating ADHD that makes project organization and planning tricky. I was finding myself torn on how to sort my React components and the resources they require in a manner that made sense to me, but it resulted in a lot of projects being re-initialized repeatedly because "it's not quite right".
Vue destroyed that anxiety with its single-file component (SFC) model and composition API. When a single .vue
file can pack its relevant requirements into a script, template, and style tag, I no longer need to consider how dependencies need to be organized. I just write exactly what the component needs into the file, and save it wherever I require it.
As for static assets, Vite helped with this by defaulting root paths to the /public
folder, keeping my imports short and my assets away from my code.
My current portfolio project uses /src
, /src/components
, and /src/modules
for the Vue parts, and /public
contains my logos, images, stylesheets, etc. The level of specificity has helped me compartmentalize my tasks and make the development process feel manageable and digestible, no matter how large it gets.