Re:Vue.js v3 released (pre alpha)
by fjp on Friday October 04, 2019 @03:28PM
(#21161054)
My issue has been going from the tiny little examples in the official tutorial to a medium-size app, I always get hung up on how to structure my files and code what belongs where yadda yadda.
[ Parent
| on HN ]
The most common way I see on the wild is by separating in categories:
- package.json
- src
|- main.js
|- components
|- pages
\- widgets
|- directives
|- helpers
|- mixins
|- router
\- store
This works for both small projects (but you might not have directives/mixins/router/store) and larger projects (but you might have to add more subfolders inside components/pages because you will start breaking down components).