kevinquillen / recipe-generator
添加 Drush 命令以帮助生成 Drupal 的 Recipes。
dev-main
2023-04-30 15:05 UTC
Requires
- drupal/core: ^10
- drush/drush: ^11
This package is auto-updated.
Last update: 2024-09-22 19:01:35 UTC
README
此 Drush 插件增加了生成 Drupal Recipes 的功能,帮助您使用交互式工具构建自己的 Recipe。Distributions 和 Recipes 创新项目仍在开发中。
https://git.drupalcode.org/project/distributions_recipes
使用 Composer 安装后,请运行以下命令
drush gen recipe
您将收到一系列提示,以帮助您制作 Recipe。
输出将放置在 (webroot)/recipes/custom 中。您可以可选地声明一个 composer.json 文件,其中包含依赖关系,这些依赖关系也将作为生成输出的一部分位于此处。
最终结果将基于您的输入生成一个 recipe.yml 文件,例如
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