-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[emulsify-ds/compound/issues/57] Dependency Improvements & Refactoring & Renaming #269
base: master
Are you sure you want to change the base?
Conversation
@@ -4,3 +4,105 @@ | |||
* @file | |||
* Functions to support theming. | |||
*/ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might make more sense to go in the Emulsify Twig module rather than in each theme. If it's going to be the recommended way to write libraries, I'd hate for someone to not know what this is, and delete it from their theme, and then ask us why their libraries don't work... If it's in the module (which is a Drupal dependency) they can't delete it, and keeps "required" code out of their custom codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To do that, we also need to change the code a little bit. (Need to get the active theme and dir)
emulsify-drupal/emulsify.theme
Line 14 in 79f34c5
$theme_name = basename(__FILE__, '.theme'); // compony |
Or we can just wait for this feature to become included in the core https://www.drupal.org/project/drupal/issues/3092496
We can propagate the idea of If you don't know and if all works good, DON'T touch anything!
😄
@emircanerkul Thank you for submitting this work. I did a light functional test on this and the functionality you are adding is great! I think this is likely the direction we would like to take emulsify as it allows components to work a bit more independently and removes a manual step we all need to do with Drupal. Creating a drupal library to attach somewhere. |
@callinmullaney thanks to you too. |
➤ Callin Mullaney commented: This ticket/issue is no longer relevant. Emulsify Core 2.x compiles component JS/CSS into their own files, is node v20 compliant, and supports SDC in drupal environments. This negates the need for the auto-attach library function request. Closing. |
Dependency Improvements & Refactoring & Renaming
With this PR, All components work as individuals. To accomplish that some hooks are written and webpack configs have been changed. Drupal automatically explores all sub-libraries.
Libraries in the global file are moved to their own files.
Dist folder output: All files are individually exported
┆Issue is synchronized with this Clickup by Unito