muban icon indicating copy to clipboard operation
muban copied to clipboard

Folder structure and file organisation on block-level

Open pigeonfresh opened this issue 6 years ago • 2 comments

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?

pigeonfresh avatar Oct 13 '18 18:10 pigeonfresh

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

nossienl avatar Dec 04 '18 18:12 nossienl

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.

skulptur avatar Feb 09 '20 03:02 skulptur