From b614b7ef5e3055ccd164ec7f6227d43e5f7627ae Mon Sep 17 00:00:00 2001 From: Jesper Kristensen Date: Wed, 3 Apr 2024 14:09:50 +0200 Subject: [PATCH] 1062: Updated readme --- README.md | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fc62010..be84a01 100644 --- a/README.md +++ b/README.md @@ -2,25 +2,39 @@ This is a Drupal 9 installation profile for OS2forms project. -## Create a new drupal 9 project with dev stability to allow all required packages to be installed. +## Create a new drupal 9 project -1) Create a new drupal project. -``` +Setting the stability to dev to allow all required packages to be installed and +also enable patching. + +* Create a new drupal project. + +```shell composer create-project drupal/recommended-project:^9.0 os2forms ``` -2) Change composer config. -``` +* Change composer config. + +```shell composer config --no-plugins allow-plugins.zaporylie/composer-drupal-optimizations true composer config --no-plugins allow-plugins.cweagans/composer-patches true composer config --no-plugins allow-plugins.simplesamlphp/composer-module-installer true -composer config minimum-stability dev ``` -3) Require the components of an os2forms project. +Set stability and ensure that patching is enabled. It will not automatically be +enabled by the `composer.json` files in the os2form profile. + +```shell +composer config --json minimum-stability dev +composer config --json extra.enable-patching true ``` -composer require "os2forms/os2forms:^3.3" "os2forms/os2forms_forloeb:^2.5" "os2forms/os2forms_forloeb_profile:^1.11" --with-all-dependencies + +* Require the components of an os2forms project. + +```shell +composer require "os2forms/os2forms:^3.3" "os2forms/os2forms_forloeb_profile:^1.11" --with-all-dependencies ``` ### Install the os2forms_forloeb_profile + See https://www.drush.org/latest/commands/site_install