Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: sous3377856 Add basic recipe framework and starter recipe #1

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

laura-johnson
Copy link
Collaborator

@laura-johnson laura-johnson commented Aug 2, 2023

Description:

Add the basic framework to apply a recipe and add a basic recipe.

Recipe update

Right now these are experimental recipes so that we can get the hang of building them.

To run setup + install:

  1. lando start
  2. lando composer install
  3. composer run-script post-create-project-cmd

At this point you will have a working Drupal project with Minimal profile installed.

There are two recipes currently:

sous_base:

  • scaffolded from /assets within the project
  • installs and assigns Gin as the admin theme with some config
  • assigns the emulsify theme as the main theme

sous_builder:

  • is in the fourkitchens/sous-builder repo
  • has config and dependencies for standard media types, content types and paragraphs that normally ship with sous

To install the sous_base recipe:
lando install-recipe sous-base

To install the sous_builder recipe:
lando composer require fourkitchens/sous-builder:dev-sous-content-recipe
lando install-recipe sous-builder

The following unpacks the composer dependencies to the main composer file so that we can remove the recipe
lando composer unpack fourkitchens/sous-builder

Note: we may want to automate this process of installing/unpacking/removing - maybe add it to the install-recipe script (TBD).

Composer update

  1. Removed the normal Sous Drupal dependencies
  2. Upgraded to Drupal 10
  3. Added patch that allows recipes to be applied
  4. Added post update script to scaffold recipes from assets to web/recipes (scripts/recipe-scaffold.sh)

Assets

  1. Added sous_base recipe with scaffolding that adds the recipe to web/recipes on install

Scripts

  1. Added script that installs a recipe using lando (scripts/install-recipe.sh)
  2. Modified setups.sh script to install the Minimal profile without existing config (we will use recipes to install config)
  3. Modified sous/Starter.php script to rewrite the theme name in the recipe to match the installed theme

Lando

  1. Added command that installs a recipe using a script (see above)

@laura-johnson laura-johnson merged commit 34946fe into main Sep 18, 2023
@laura-johnson laura-johnson deleted the sous-3377856-add-starter-recipe branch September 18, 2023 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant