itamair/recipe-generator

Adds Drush command(s) to help generate Recipes for Drupal.

1.1.1 2024-12-23 10:35 UTC

This package is auto-updated.

Last update: 2025-05-23 11:38:45 UTC


README

Fork from itamair

Disclaimer:

This is a Fork that extends with Drupal 11 and Drush 13 compatibility the original Drupal Recipe Generator project and its kevinquillen/recipe-generator git repo. @see this repo commits list to inspect the changes & adjustments done over it (starting from this package fork on the 20/12/2024)

Original Documentation

This add-on for Drush adds the capability to generate a Recipe for Drupal to help you build out your own Recipe with an interactive tool. The Distributions and Recipes initiative is still in development.

https://git.drupalcode.org/project/distributions_recipes

After installing with Composer, run the command with the following:

drush gen recipe

You will have a series of prompts to help you craft your Recipe.

The output will be placed into (webroot)/recipes/custom. You can optionally declare a composer.json file with dependencies which will also be located here as part of the generated output.

The end result will generate a recipe.yml file based on your input, for example:

name: 'My Custom Recipe'
description: 'this is the description'
type: 'Site'

install:
  - node
  - user
  - redirect
  - gin
  - pathauto
  - dblog
  - views

config:
  import:
    dblog: '*'
    pathauto: '*'
    redirect:
      - redirect.settings
      - system.action.redirect_delete_action
      - views.view.redirect
    node:
      - views.view.content
    user:
      - views.view.user_admin_people
    gin:
      - gin.settings
      - block.block.gin_breadcrumbs
      - block.block.gin_content
      - block.block.gin_local_actions
      - block.block.gin_messages
      - block.block.gin_page_title
      - block.block.gin_primary_local_tasks
      - block.block.gin_secondary_local_tasks