Convert commerce_kickstart profile installation to recipe

Created on 25 February 2025, about 1 month ago

Problem/Motivation

While 📌 Add the full store demo recipe to the Composer project template Active is about converting the demo into a recipe, this issue is about converting the installation profile itself to a recipe. One of the reasons why this is needed is that recipes should be possible to be installed without the profile. Below are some examples

When installing the commerce_kickstart profile and commerce_demo on top of that with Drush one used to do the following:

drush si commerce_kickstart
drush en commerce_demo

but given the profiles are not necessary anymore (see https://www.drupal.org/node/3432357 ) the same could be done with

drush si ../recipes/commerce_kickstart_demo

with the same outcome.

All commerce_kickstart submodules are now integrated into commerce_kickstart_demo. It is likely not a permanent solution and certain features will be extracted from the demo and turned into recipes. That being said - commerce_kickstart itself still ships with hook_install and config folder. Furthermore, it is inspired by the standard profile before it was rewritten as a recipe.

Proposed resolution

- Create commerce_recipe_kickstart_base recipe (alternatively commerce_kickstart_base as an exception to utilize commerce_kickstart namespace similar to what commerce_kickstart_demo does).
- Make this recipe depend on some recipes currently part of the core and do things we do manually in the hook_install today. Example core recipes to be utilized are core/recipes/basic_shortcuts and core/recipes/administrator_role
- Ensure the recipe can serve as a standalone installer without depending on commerce_kickstart. That will make commerce_kickstart itself just an installer and finalize the idea described in 📌 Uninstall commerce_kickstart profile as last step of install process Active
- Add a new base recipe as a dependency to commerce_kickstart_demo so one will never be applied without the other.

📌 Task
Status

Active

Version

4.0

Component

Recipes

Created by

🇳🇴Norway zaporylie

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

Comments & Activities

Production build 0.71.5 2024