muban
muban copied to clipboard
Folder structure and file organisation on block-level
In the last couple of months I often found myself restructure the folder-structure of my blocks through adding some additional folders for styling and scripts. This to prevent from losing overview and keep a hierarchy of files. How are other people handling this issue?
Having extra folder for styles is kinda handy for splitting up the scss file.
Scripts folder depends.. mainly a component is 1 thing, so I would have 1 file.
But then again if you want to use enums etc, I would put that in a separate folder within the component folder
Having worked in projects together, I particularly disliked having scripts in their own folder. Would rather organize those on demand rather than by default. Don't have an opinion on the scss files.