Skip to content

Commit efbd67a

Browse files
committed
Update for WxT 6.1.x
1 parent 7c32779 commit efbd67a

File tree

4 files changed

+53
-14
lines changed

4 files changed

+53
-14
lines changed

.env

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
BASE_IMAGE=drupalwxt/site-wxt
22
DOCKER_NAME=sitewxt
3+
# This must match the name of your folder
4+
DOCKER_IMAGE=site-wxt
5+
# The database name
36
DB_NAME=wxt
7+
# The database type mysql or pgsql
8+
# DB_TYPE=mysql
9+
# DB_PORT=3306
10+
# DB_VERSION=8.0
11+
# The installation profile
412
PROFILE_NAME=wxt
5-
DOCKER_IMAGE=site-wxt
13+
# The relative location of the Behat tests
614
BEHAT_PATH=profiles/wxt/tests
15+
# This must match the name of your mutagen volume
16+
# MUTAGEN_VOLUME=site-wxt-mutagen-cache
17+
# COMPOSER_VERSION=2.7.9

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ PLATFORM := $(shell uname -s)
55
$(eval GIT_USERNAME := $(if $(GIT_USERNAME),$(GIT_USERNAME),gitlab-ci-token))
66
$(eval GIT_PASSWORD := $(if $(GIT_PASSWORD),$(GIT_PASSWORD),$(CI_JOB_TOKEN)))
77
DOCKER_REPO := https://github.com/drupalwxt/docker-scaffold.git
8-
GET_DOCKER := $(shell [ -d docker ] || git clone --branch 9.2.x $(DOCKER_REPO) docker)
8+
GET_DOCKER := $(shell [ -d docker ] || git clone --branch 11.1.x $(DOCKER_REPO) docker)
99
include docker/Makefile

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ This distribution is open source software and free for use by departments and ex
2626
The following command is all you need to get started:
2727

2828
```sh
29-
composer create-project drupalwxt/wxt-project:5.4.2 <site-name>
29+
composer create-project drupalwxt/wxt-project:11.1.0 <site-name>
3030
```
3131

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

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

4040
```sh
41-
composer create-project drupalwxt/wxt-project:5.4.2 site-wxt
41+
composer create-project drupalwxt/wxt-project:11.1.0 site-wxt
4242
```
4343

4444
> **Note**: Remember to keep the `composer.json` and `composer.lock` files that exist above `docroot` in source control as they are controlling your dependencies.
@@ -87,7 +87,7 @@ Please **don't add `drupal/core` to your project's composer.json** since WxT man
8787

8888
WxT's minor versions will always correspond to Drupal Core's. For example, `drupalwxt/wxt:~4.2.0` will require Drupal Core 9.2.x and `drupalwxt/wxt:~4.1.0` will require Drupal Core 9.1.x.
8989

90-
When you need to update Drupal Core as an example from 9.1.x to 9.2.x, all you would do is change your requirement for `drupalwxt/wxt` in your `composer.json` file:
90+
When you need to update Drupal Core as an example from 10.4.x to 11.1.x, all you would do is change your requirement for `drupalwxt/wxt` in your `composer.json` file:
9191

9292
```
9393
composer require --no-update drupalwxt/wxt:~4.2.0

composer.json

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@
88
"require": {
99
"composer/installers": "^2.1",
1010
"cweagans/composer-patches": "^1.7",
11-
"drupal/core-composer-scaffold": "10.4.x",
12-
"drupalwxt/wxt": "5.4.x-dev"
11+
"drupal/core-composer-scaffold": "11.1.*",
12+
"drupalwxt/wxt": "6.1.x-dev"
1313
},
1414
"require-dev": {
15-
"drupal/core-dev": "10.4.x",
15+
"drupal/core-dev": "11.1.*",
16+
"drupal/drupal": "^11.1",
1617
"drupal/drupal-extension": "5.0.0-alpha1",
17-
"drush/drush": "^12.4.3",
18+
"drush/drush": "^13.3.3",
1819
"oomphinc/composer-installers-extender": "^1.1 || ^2",
20+
"phpspec/prophecy-phpunit": "^2",
1921
"squizlabs/php_codesniffer": "3.*",
20-
"phpspec/prophecy-phpunit": "^2"
22+
"vlucas/phpdotenv": "^5.1",
23+
"webflo/drupal-finder": "^1.2"
2124
},
2225
"config": {
2326
"discard-changes": true,
@@ -27,9 +30,12 @@
2730
"cweagans/composer-patches": true,
2831
"dealerdirect/phpcodesniffer-composer-installer": true,
2932
"drupal/core-composer-scaffold": true,
33+
"drupal/core-project-message": true,
34+
"drupal/core-vendor-hardening": true,
3035
"oomphinc/composer-installers-extender": true,
3136
"php-http/discovery": true,
32-
"phpstan/extension-installer": true
37+
"phpstan/extension-installer": true,
38+
"tbachert/spi": true
3339
}
3440
},
3541
"repositories": [
@@ -44,12 +50,34 @@
4450
{
4551
"type": "composer",
4652
"url": "https://drupalwxt.github.io/composer-extdeps/"
53+
},
54+
{
55+
"type": "package",
56+
"package": {
57+
"name": "fontawesome/fontawesome",
58+
"version": "6.4.2",
59+
"type": "drupal-library",
60+
"extra": {
61+
"installer-name": "fontawesome"
62+
},
63+
"dist": {
64+
"url": "https://use.fontawesome.com/releases/v6.4.2/fontawesome-free-6.4.2-web.zip",
65+
"type": "zip"
66+
}
67+
}
4768
}
4869
],
4970
"scripts": {
50-
"post-root-package-install": [
51-
"DrupalWxT\\WxT\\ScriptHandler::postCreateProject"
71+
"post-install-cmd": [
72+
"@copy-composer-directory"
73+
],
74+
"post-update-cmd": [
75+
"@copy-composer-directory"
76+
],
77+
"copy-composer-directory": [
78+
"[ -d vendor/drupal/drupal/composer ] && mkdir -p html/composer && cp -R vendor/drupal/drupal/composer/* html/composer/ || echo 'composer directory not found; skipping copy'"
5279
],
80+
"post-create-project-cmd": "rm -r -f behat.yml",
5381
"quick-start": [
5482
"composer install"
5583
]

0 commit comments

Comments
 (0)