Use composer suggest to present additional recipe options

Created on 8 July 2024, 6 months ago

Problem/Motivation

Part of the discussion in #3458653: Allow "subrecipes" in the same git repo was a mention of using composer suggest as a way to present additional recipe options. For example, suppose an event recipe wanted to make registration an available feature but wasn't sure this capability would be needed by every site applying the main event recipe. The recipe author could develop a separate recipe to add the registration functionality, and add it to the "suggest" section of the event recipe's composer.json file. At the end of the process of applying the event recipe, a site builder would be present with an option to also apply the event registration recipe.

Proposed resolution

Extend the functionality of the recipes system to look in a recipe's composer.json file for a "suggest" section. If present, any listed projects would be presented to the site builder as options to be installed. They could apply all suggestions in a single click, skip all suggestions, or. (ideally) have an option to select specific suggestions to apply.

Feature request
Status

Active

Version

11.0

Component

Code

Created by

🇨🇦Canada mandclu

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

Comments & Activities

Production build 0.71.5 2024