Replies: 1 comment
-
Issue has been created #359 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are many approaches when it comes to organizing the file and folder structure of a project. With the introduction of storybook and future testing approaches, new files are being added to the web-styles package.
Currently, we're following a themed folder structure where files are organized by variables, mixins, placeholders, functions and components.
Storybook and cypress will introduce new themes (stories, tests) with sometimes more than one file belongig to one component.
Themed approach:
Files belonging to one component get more and more cluttered. A new approach is being proposed that would move files belonging to one component into a component folder. Files in the component folder can be further grouped for overview.
Component based approach:
Benefits:
index.scss
, it would not be a breaking change since the import path for one component would not change - functions, mixins and variables are exposed in the cwf.scssDrawbacks:
2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions