kevinquillen / recipe-generator
Adds Drush command(s) to help generate Recipes for Drupal.
Installs: 1 868
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 7
Open Issues: 3
Requires
- drupal/core: >=11
- drush/drush: ^13.0
README
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
Versions
Use the 2.0.x branch for Drupal 11 or higher.
composer require kevinquillen/recipe-generator:^2.0
Use the 1.0.x branch for Drupal 10:
composer require kevinquillen/recipe-generator:^1.0
How to use
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