-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
🪄 EnhancementNew feature or request.New feature or request.
Description
Expected Behavior
When installing a component in Emulsify Drupal if the component includes a library to be attached like a JavaScript file, then the attachment should be names-spaced under the theme.
Additionally, the attachment should be defined in THEME_NAME.libraries.yml file if it is not already defined.
Current Behavior
The emulsify namespace is used and causes JavaScript functionality to fail.
Possible Solution
After adding the component, Emulsify CLI should replace emulsify with the specific theme name much like how it does it in .cli/init.js:89.
Steps to Reproduce (for bugs)
- Add the tabs component from compound;
emulsify component install tabs - Look into the twig file of the newly added component:
@components/02-molecules/tabs/tabs.twig - You will see the attached library is name-spaced under emulsify not the actual theme.
Your Environment
- Version used: 1.5.0
- Browser Name and version: Google Chrome v96.0.4664.110
- Operating System and version (desktop or mobile): macOS Big Sur v11.6.1
Metadata
Metadata
Assignees
Labels
🪄 EnhancementNew feature or request.New feature or request.