E
E
eugenedrvnk2020-09-02 17:45:07
Vue.js
eugenedrvnk, 2020-09-02 17:45:07

How can I structure files in a project (vue) more accurately?

There is the following structure:

Mb2WkKl.png
There is a SolutionsSection component and related to it: SolutionsSectionItem and SolutionsSectionRow. I would like to put it in a separate folder with the same (SolutionsSection) name, but then this folder jumps up the structure and the former alphabetical sequence is lost:

diGeJ6l.png
There is an option to create folders for all components and then the structure will be preserved, but this is hardly a convenient option , because Not all components have "subcomponents". Changing sorting in the editor is also not a suitable option, because. the project is large and not in all sections it is necessary to sort folders and files on the same level.
Does anyone have any working examples?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-09-02
@eugenedrvnk

it all depends on your wishes and ideas about beauty.
I have all the components stored in components/ComponentName , inside which is already specifically ComponentName.vue/html/css (the last two are necessary and the size of the component).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question