Feat: add hyva theme install for local dev environment#196
Open
dermatz wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an optional, interactive Hyvä theme installation step to the local ddev install-magento workflow, integrating Hyvä setup into the Magento bootstrap process for developers who have a Hyvä license.
Changes:
- Prompt the user during install to optionally install Hyvä and capture repo URL + token.
- Configure Composer to access the Hyvä repository and require the Hyvä default theme package.
Comment on lines
+82
to
+83
| read -r -p "Install Hyvä theme? This requires a free license key from https://www.hyva.io/licenses/manage/shops/. Install now? [y/N] " install_hyva | ||
| if [[ "$install_hyva" =~ ^[Yy]$ ]]; then |
Comment on lines
+91
to
+93
| composer config repositories.private-packagist composer "$hyva_repo_url" | ||
| composer config --global --auth http-basic.hyva-themes.repo.packagist.com token "$hyva_token" | ||
| composer require 'hyva-themes/magento2-default-theme' |
| # optional: install Hyvä theme (open source since June 2025, requires free license key) | ||
| read -r -p "Install Hyvä theme? This requires a free license key from https://www.hyva.io/licenses/manage/shops/. Install now? [y/N] " install_hyva | ||
| if [[ "$install_hyva" =~ ^[Yy]$ ]]; then | ||
| read -r -p "Enter your Hyvä https://hyva-themes.repo.packagist.com/repository-url (from https://www.hyva.io/licenses/manage/shops/): " hyva_repo_url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds an optional step to the Magento installation script for installing the Hyvä theme. Users are prompted to provide their Hyvä repository URL and token, making it easier to include Hyvä as part of the setup if they have a license.
Theme installation enhancement:
.ddev/commands/web/install-magentoto optionally install the Hyvä theme, including steps to configure Composer with the provided repository URL and token, and require the Hyvä theme package.