Skip to content

Commit 8e345b2

Browse files
committed
feat(doc): Update composer section
1 parent a078361 commit 8e345b2

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

content/docs/development/composer/_index.en.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ We highly recommend using our **[Composer Project Template][wxt-project]** to bu
2727
The following command is all you need to get started:
2828

2929
```sh
30-
composer create-project drupalwxt/wxt-project:4.3.4 <site-name>
30+
composer create-project drupalwxt/wxt-project:5.1.1 <site-name>
3131
```
3232

33-
> **Note**: For development you may also specify a branch using `drupalwxt/wxt-project:4.3.x-dev`.
33+
> **Note**: For development you may also specify a branch using `drupalwxt/wxt-project:5.1.x-dev`.
3434
3535
You can see a working example of a fully generated Composer Project Template over at:
3636

@@ -39,7 +39,7 @@ You can see a working example of a fully generated Composer Project Template ove
3939
Where the following is the command that was used for the initial generation:
4040

4141
```sh
42-
composer create-project drupalwxt/wxt-project:4.3.4 site-wxt
42+
composer create-project drupalwxt/wxt-project:5.1.1 site-wxt
4343
```
4444

4545
> **Note**: Remember to keep the `composer.json` and `composer.lock` files that exist above `docroot` in source control as they are controlling your dependencies.
@@ -86,28 +86,24 @@ Composer will create `composer.lock` file, which is a list of dependencies that
8686

8787
Please **don't add `drupal/core` to your project's composer.json** since WxT manages Drupal Core for you along with the series of patches on top of it.
8888

89-
WxT's minor versions will always correspond to Drupal Core's. For example, `drupalwxt/wxt:~5.0.x` will require Drupal Core 10.0.x and `drupalwxt/wxt:~4.5.x` required Drupal Core 9.5.x.
89+
For example:
9090

91-
When you need to update Drupal Core as an example from 9.5.x to 10.0.x, all you would do is change your requirement for `drupalwxt/wxt` in your `composer.json` file:
91+
* `drupalwxt/wxt:~5.2.0` will require Drupal Core 10.2.x
92+
* `drupalwxt/wxt:~5.1.0` will require Drupal Core 10.1.x
9293

93-
```
94-
composer require --no-update drupalwxt/wxt:~5.0.0
94+
When you need to update Drupal Core as an example from 10.1.x to 10.2.x, all you would do is change your requirement for `drupalwxt/wxt` in your `composer.json` file:
95+
96+
```sh
97+
composer require --no-update drupalwxt/wxt:~5.2.0
9598
composer update
9699
```
97100

98-
> **Note:** This assumes you have already backed up your database prior to attembting a major version upgrade.
99-
100101
### Compatibility table
101102

102-
| `drupalwxt/wxt` version | Drupal Core version | Drush version |
103-
| ----------------------- | ------------------- | ------------- |
104-
| `~5.0.x` | 10.0.x | `>=12.1.0` |
105-
| `~4.5.x` | 9.5.x | `>=9.7` |
106-
| `~4.4.x` | 9.4.x | `>=9.7` |
107-
| `~4.3.x` | 9.3.x | `>=9.7` |
108-
| `~4.2.x` | 9.2.x | `>=9.7` |
109-
| `~4.1.x` | 9.1.x | `>=9.7` |
110-
| `~4.0.x` | 8.8.x+ | `>=9.7` |
103+
| WxT version | Drupal Core version | Drush version | PHP version |
104+
| ----------- | ------------------- | ------------- | ----------- |
105+
| `5.2.x` | `10.2.x` | `>=12.4` | `8.2` |
106+
| `5.1.x` | `10.1.x` | `>=12.1` | `8.1` |
111107

112108
<!-- Links Referenced -->
113109

0 commit comments

Comments
 (0)