skilld-labs / ui-patterns-kaizen

Development for https://www.drupal.org/project/ui_suite
3 stars 0 forks source link

Re-think the naming of sub-folders in theme #10

Open koskinpark opened 1 year ago

koskinpark commented 1 year ago

I suggest to re-use drupal core's themes at this point, and have the following:

  1. for drupal's js files we can have themename/js folder. 1.1. In this folder we have only drupal's scripts, which are out of "storybook" scope. 1.2. Filenames are themename/js/some-script.es6.js 1.3. Compiled version lives here themename/js/some-script.js

  2. for drupal's css files we can have themename/css folder. 2.1. Works same way as (1)

  3. for source images (and svg sprite) we can use themename/images folder. 3.1. We can try to inline affected images from css -> to base64 format.

  4. for source fonts we can use themename/fonts folder. 4.1. Probably we can try to use source fonts in compiled css somehow. Not copy fonts to dist folder and then use them, but instead use source fonts directly in compiled css.

  5. So our src folder can be removed at all

  6. Probably dist folder can be removed at all

  7. Pattern's shit lives in templates/patterns as always.

  8. Compiled assets of components - lives inside of components