This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Contributing
Adam edited this page Jul 24, 2024
·
2 revisions
This page is intended for developers.
- Fork the repository and clone it into your local environment.
- In the
recipes
directory, create a new directory for your recipe. - In that directory, run the following:
composer init --name=drupal/YOUR_RECIPE_NAME --type=drupal-recipe --description="A BRIEF DESCRIPTION OF THE RECIPE" --require="drupal/core:>=10.3"
composer config version dev-main
- At the top level of the repository, run the following:
composer config repositories.YOUR_RECIPE_NAME '{"type": "path", "url": "recipes/YOUR_RECIPE_NAME", "options": {"symlink": false}}'
composer require --no-update --working-dir=recipes/starshot "drupal/YOUR_RECIPE_NAME:*"
- Edit
recipes/starshot/recipe.yml
, and add the name of your recipe to therecipes
list, like so:
- YOUR_RECIPE_NAME
- At the top level of the repository, run
composer drupal:rebuild
to reinstall all dependencies and reinstall Drupal. (If you're using DDEV, you should runddev composer drupal:rebuild
.) Do this every time you make a change to your recipe, to see the changes take effect. (Pro tip: you only need to rundrupal:rebuild
if you add or remove a dependency. If you only change the recipe,drupal:install
is faster.) - Build out your recipe however you want, then when it's ready, open a pull request!