You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL-INSTRUCTIONS.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ To avoid dependency clashes, remove the root-level composer.lock file.
25
25
26
26
## Temporarily remove patches
27
27
28
-
- The `composer.patches.json` file at the root of your repository needs to be adjusted. Compare it with the version located in `docroot/profiles/contrib/webspark/sample-webspark-dependencies/patches.webspark.json` and remove any of the items that exist in that file from the root `composer.patches.json` file.
28
+
- The `composer.patches.json` file at the root of your repository needs to be adjusted. Compare it with the version located in `docroot/profiles/contrib/webspark/webspark-dependencies-source/patches.webspark.json` and remove any of the items that exist in that file from the root `composer.patches.json` file.
29
29
- Then, take what is remaining, copy it, and paste it into a temporary text file.
30
30
- Your root `composer.patches.json` file should basically be empty now, leaving only the following content:
## Add custom-dependencies directory (if it doesn't exist)
47
47
48
-
- If your repository does not already have a `custom-dependencies` directory at the root level, you will need to create it. You can do so by copying the `sample-custom-dependencies` directory from this profile and pasting it into the root of your repository. Then, rename the copied directory from `sample-custom-dependencies` to `custom-dependencies`.
49
-
- If you already have a `custom-dependencies` directory, you should ensure that its contents include everything that is in the `sample-custom-dependencies` directory, making adjustments as necessary.
48
+
- If your repository does not already have a `custom-dependencies` directory at the root level, you will need to create it. You can do so by copying the `custom-dependencies-source` directory from this profile and pasting it into the root of your repository. Then, rename the copied directory from `custom-dependencies-source` to `custom-dependencies`.
49
+
- If you already have a `custom-dependencies` directory, you should ensure that its contents include everything that is in the `custom-dependencies-source` directory, making adjustments as necessary.
50
50
- If you have a `scripts` directory in your existing `custom-dependencies` folder, please delete it.
51
51
- If you have a `patches` directory in your existing `custom-dependencies` folder, you can keep it, if it has local patch files that you need for your site.
52
52
@@ -55,8 +55,8 @@ For more information about the `custom-dependencies` folder and its purpose, ple
55
55
## Add webspark-dependencies directory
56
56
57
57
- If your repository contains an `upstream-configuration` directory at the root level, you will need to delete it. This directory is no longer needed with the newly consolidated webspark profile (as of Webspark 2.16.4).
58
-
- Copy the `sample-webspark-dependencies` directory from this profile and paste it into the root of your repository.
59
-
- Rename the copied directory from `sample-webspark-dependencies` to `webspark-dependencies`.
58
+
- Copy the `webspark-dependencies-source` directory from this profile and paste it into the root of your repository.
59
+
- Rename the copied directory from `webspark-dependencies-source` to `webspark-dependencies`.
60
60
- Edit the namespace declarations in the two PHP files within the `scripts` directory to be `WebsparkCustomScripts` instead of `SampleWebsparkCustomScripts` and save them.
61
61
62
62
For more information about the `webspark-dependencies` folder and its purpose, please refer to the README file located within that directory.
In order to provide better separation and management of custom dependencies and patches, we've introduced two new files:
4
10
5
11
-`custom-dependencies/composer.json`: For managing custom dependencies
@@ -86,4 +92,4 @@ composer update
86
92
87
93
### What if I don't want to use the `custom-require` or `custom-remove` commands?
88
94
89
-
The standard `composer require` and `composer remove` commands will still work, however we HIGHLY recommend that you try not to use them. In a future update, we may need to edit the root `composer.json` file, which puts you in danger of a nasty merge conflict.
95
+
The standard `composer require` and `composer remove` commands will still work, however we HIGHLY recommend that you try not to use them. In a future update, we may need to edit the root `composer.json` file, which puts you in danger of a nasty merge conflict.
0 commit comments