This recipe is designed to help start a highly configured Drupal project.
Rather than one large Recipe that tries to do everything, we've broken it up into multiple sub-recipes. This recipe installs them all, but you can also install the sub-recipes on their own (Once this Drupal issue is resolved.).
- kanopi/gin-admin-experience
- kanopi/saplings-base
- kanopi/saplings-editorial
- kanopi/saplings-launch
- kanopi/saplings-tests [Cypress]
- kanopi/saplings-content-types
Apply a recipe to Drupal installed with a minimal profile. See below is you want to set up a quick testing environment.
- Follow the instructions in kanopi/drupal-starter to start a new project as it is configured for recipes and tooling needed.
- Run
fin composer require kanopi/saplings:^1
to require this repository. - Run
fin recipe-apply saplings
to apply this recipe. - Run the following command to unpack the dependencies from all kanopi/saplings recipes to the site project's composer.json file.
fin recipe-unpack kanopi/saplings && fin recipe-unpack kanopi/gin-admin-experience && fin recipe-unpack kanopi/saplings-base && fin recipe-unpack kanopi/saplings-editorial && fin recipe-unpack kanopi/saplings-launch && fin recipe-unpack kanopi/saplings-content-types && fin recipe-unpack kanopi/saplings-component-types && fin recipe-unpack kanopi/saplings-component-base && fin recipe-unpack kanopi/saplings-content-base && fin recipe-unpack kanopi/saplings-media && fin recipe-unpack kanopi/imagemagick-configuration && fin recipe-unpack kanopi/saplings-theme && fin recipe-unpack kanopi/saplings-editorial
- Export configuration.
You can then remove the recipe once it has been applied and unpacked as the configuration is now in your Drupal, and the dependencies are in your composer.
fin composer remove kanopi/saplings
- Export configuration.
Feature complete.
- kanopi/solr-search-pantheon-recipe - Recipe that installs essential modules for Pantheon SOLR search.
- Event Content type/Supporting Views
- Domain Access Recipe
- Additional components
- Break Content type and add-on Component types into their own recipes. Once this Drupal issue is resolved.
- kanopi/password-policy-90-days - Installs and configures Password Policy and sets a 90 day expiration default.
- kanopi/remote-video-youtube-lite - Configures Remote Video Media entity to use Lite YouTube Embed.
We'd love your help with testing, ideation, and development.
Decide on a name for your testing environment. In this example, I will use kanland
.
- Checkout kanopi/drupal-starter into it's own repo.
git clone git@github.com:kanopi/drupal-starter.git kanland && cd kanland
- Open /.docksal/docksal.env in your editor.
- Update row 28
hostingsite="kanland"
and save. - Run
fin init
- The build will fail with the following message as we haven't installed Drupal yet.
Error: Class "Drupal\user\Entity\User" not found
- Run
fin drush si minimal -y && fin drush uli
to install Drupal and log in. - Click on the one-time-login to verify the minimal install happened.
- Require this repository:
fin composer require kanopi/saplings:^1
- Apply the recipe:
fin recipe-apply saplings
To reset after you have done some testing:
- Run
fin init
- The build will fail with the following message as we haven't installed Drupal yet.
Error: Class "Drupal\user\Entity\User" not found
- Run
fin drush si minimal -y && fin drush uli
to install Drupal and log in.
Use composer the require the recipes needed. We currently host on our packagist.
To apply contrib/composer installed recipes, run the following commands:
fin recipe-apply recipe-name
Each recipe can have composer dependencies. "Unpacking" takes these dependencies from the recipe and applies them to the project's composer.json file.
To unpack contrib/composer installed recipes, run the following commands:
fin recipe-unpack recipe-name
Note: The Drupal core patch is experimental, but it is mainly additions. If you don't want to have that on your production site, the good news is that you don't have to have patch after you've applied and unpacked your recipes. You can simply remove the patch and update core as the recipes are now yours.
![saplings-graph](https://private-user-images.githubusercontent.com/5177009/312826349-1f1c9c31-0a20-4e7f-8c76-aa0c108f6d59.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNTQ4NjIsIm5iZiI6MTcyMTM1NDU2MiwicGF0aCI6Ii81MTc3MDA5LzMxMjgyNjM0OS0xZjFjOWMzMS0wYTIwLTRlN2YtOGM3Ni1hYTBjMTA4ZjZkNTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTlUMDIwMjQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjY4ZjY4ZWNkNWU3ZmUyMGVlZGFlMzllMjY0ZDk4MTNlYjY5ZTBmYjA0Mjk2MTBiZmE5MGIxMjdmMzlhNzE1MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.fhvl2_y4ZcEwbZvxhO94R4e6VWvp1Ta5v1u2eBW4-Ek)
Created using JBZoo/Composer-Graph