Recipe Unpack

Leaving Drupal CMS is what you're supposed to do...

About Josh Mitchell

  • Founder of M6L
  • Full stack consultancy
  • 20 years Drupal experience
  • Musician and outdoor enthusiast
  • Connect: LinkedIn or Drupal Slack
Josh Mitchell

What are Drupal Recipes?

  • Recipes introduced in Drupal 10.3
  • They provide a standardized way to install and configure Drupal sites
  • Recipes can include modules, themes, configuration, and content
  • They're composable - you can combine multiple recipes
  • Examples: "Standard" recipe, "Umami" demo recipe, "Minimal" recipe

What's New in Drupal 11.2

The Recipe Unpack feature now allows dependencies to be injected into your project, replacing reliance on recipe packages.

Getting Started: Step-by-Step

  1. Upgrade to Drupal 11.2 (or with plugin, even Drupal 10.3+).
  2. composer update drupal/core-* --with-all-dependencies
  3. composer require drupal/core-recipe-unpack
  4. composer config allow-plugins.drupal/core-recipe-unpack true
  5. composer drupal:recipe-unpack

Automating Future Unpacking

New recipes unpack automatically—unless you disable with:

{
  "extra": {
    "drupal-recipe-unpack": {
      "on-require": false
    }
  }
}

Caveats & Considerations

  • Requires manual unpacking for require-dev dependencies.
  • May need adjustments in complex existing dependency setups.

Live demonstration!

Wrapping Up

Streamlined workflow and dependency management via recipe unpack feature.

  • Composer require a recipe.
  • Unpack plugin adds the dependencies to your composer.json.
  • Run the recipe to install the new dependencies and related content/config.
  • Profit!