Automating Custom YML Files in Emulsify Theme Installs

Created on 3 January 2025, 2 months ago
Updated 2 February 2025, about 1 month ago

Iā€™m currently using Emulsify Drupal v5.4, and after running "drush emulsify my_theme", it generates the standard Drupal files (theme.info.yml and theme.libraries.yml). However, I frequently need to define custom regions and libraries for my themes. Additionally, I utilize a custom Compound repo and would like to streamline this process so that these customizations (regions, libraries, etc...) are automatically rendered during each Emulsify system install.

We create a significant number of new themes, and manually editing these files every time for the same repetitive changes is inefficient. It would be highly beneficial to have a way to integrate these customizations directly into the Compound repo or another part of the process, ensuring they are applied automatically with each theme generation.

Proposed Solution:

  • Provide a mechanism to define custom regions, libraries, or other repetitive configurations in the Compound repo or as part of the Emulsify command.
  • Enable the inclusion of a configuration file or template that the drush emulsify command references to generate theme.info.yml and theme.libraries.yml with pre-defined customizations.

Benefits:

  • Reduces manual work and potential errors in updating files for each theme.
  • Increases efficiency for teams working on multiple theme creations.
  • Supports a smoother and more consistent workflow when using Emulsify with custom configurations.

Use Case:

A development team creates multiple themes using Emulsify, all requiring the same set of regions and libraries. They already have a custom Compound repo that was forked, however they need some root files (e.g. yml files) of the theme to be custom. Automating this step allows the team to focus on unique theme features instead of repetitive file edits.

Let me know if more details are needed! Thank you for considering this enhancement.

āœØ Feature request
Status

Active

Version

5.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024