Skip to content
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

Subtheme #130

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Subtheme #130

wants to merge 4 commits into from

Conversation

fertant
Copy link
Collaborator

@fertant fertant commented May 28, 2022

Summary

This PR fixes/implements the following bugs/features

  • Bug 1
  • Bug 2
  • Feature 1
  • Feature 2
  • Breaking changes

Explain the motivation for making this change. What existing problem does the pull request solve?

Documentation Update (required)

If this pull request requires a change to Emulsify documentation, those changes, updates, and/or new information must accompany this pull request.

How to review this PR

  • Step 1
  • Step 2
  • Step 3: Profit

Closing issues

Closes #

@fertant fertant requested a review from ModulesUnraveled May 28, 2022 13:17
@fertant
Copy link
Collaborator Author

fertant commented Jul 2, 2022

"subtheme" tag in emulsify component configuration marking component that belongs to different subthemes. That creates the new possibility to pull all components that belong to a certain subtheme. The main theme that could be built separately from Drupal will contain pagers from different websites and be marked with subtheme tags for different sites. Each smaller site could pull all required components based on the tag with single command even during the CD process. Like,
emulsify component install -s landing
The list of components that will be installed by this command for the current theme is:
landing-pages
text
grid
cta
links
card
buttons
images

This PR creates an additional command option to pull subtheme.

@amazingrando
Copy link
Contributor

@fertant Please fill out the details on what this PR does and how to review it and I'll get this added to our team's queue for review. Thanks!

@amazingrando amazingrando added 🪄 Enhancement New feature or request. labels Jul 12, 2022
src/index.ts Outdated
Comment on lines 93 to 96
.option(
'-s --subtheme <subtheme>',
'This option use name as subtheme to pull group of components from full list of the components'
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I get the gist of this PR, and would like to get it merged. But I don't think "subtheme" is the right term. Particularly in Drupal, there's already an established concept of what a subtheme is, and this is very different.

I think the term "Component Set" better describes what we're doing here.

So, what do you think about

'-cs --component-set <setname>',
'Use this to Install a pre-defined set of related components from your component library'

Copy link
Collaborator Author

@fertant fertant Jul 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally agree with it. Parameters renamed to componentSet.
This PR should go together with emulsify-ds/compound#46

@fertant
Copy link
Collaborator Author

fertant commented Oct 4, 2022

Are there any updates for this PR? Do you planning to merge it or someone has more questions to proposed updates?
@ModulesUnraveled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪄 Enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants