From 6a54240473bf8b54654cdf1735188f31c3864c53 Mon Sep 17 00:00:00 2001 From: edosenseidotcom <78798096+edosenseidotcom@users.noreply.github.com> Date: Sun, 3 Apr 2022 20:00:39 +0900 Subject: [PATCH] Update README.me Add instructions for patching local files. Thanks to @tobybellwood who helped me out in chat. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fd7f5b..29e4ec8 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,8 @@ If you need to apply patches (depending on the project being modified, a pull request is often a better solution), you can do so with the [composer-patches](https://github.com/cweagans/composer-patches) plugin. -To add a patch to drupal module foobar insert the patches section in the extra -section of composer.json: +To add a patch to drupal module `foobar`, insert the `patches` section in the +`extra` section of composer.json: ```json "extra": { @@ -123,6 +123,9 @@ section of composer.json: } ``` +To apply locally stored patches, reference the path in `composer.json` and +copy the directory containing the patch files in `lagoon/cli.dockerfile`. + ### What are the "TESTING" files in this repo? These files are used by Github actions to run a basic suite of tests specific to this template. They utilise the excellent [Leia](https://github.com/lando/leia) tool to generate a set of mocha-compatible tests. Have a look through the markdown for both files, and you will see what they do. These tests can also be generated and run locally.