Skip to content

Commit f228a7b

Browse files
committed
Major base update to Drupal 9
1 parent 9b97b79 commit f228a7b

27 files changed

+3777
-3416
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export-prod: # Export production tarball
165165
# Drupal specific commands
166166
# The following commands are used to strap and control Drupal.
167167
##
168-
init-drupal: drupal-install config-init config-import clear-cache
168+
init-drupal: drupal-install clear-cache
169169

170170
update: docker-stop composer-install docker-rebuild wait-healthy clear-cache config-import updb clear-cache # Run the 'rebuild' task then import configuration and clear Drupal's cache.
171171

@@ -178,6 +178,7 @@ drupal-install: docker-running
178178
--yes \
179179
--account-name=admin \
180180
--account-pass=admin \
181+
--existing-config \
181182
install_configure_form.enable_update_status_module=NULL \
182183
install_configure_form.enable_update_status_emails=NULL
183184
$(CURDIR)/bin/tool chmod 777 /var/www/webroot/sites/default/files

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ standalone servers.
2222

2323
## Requirements
2424

25-
MacOS, Linux, or Windows
25+
* MacOS, Linux, or Windows
26+
27+
> On systems that don't ship with docker-compose (Linux), it should also be installed.
28+
29+
* GNU Make (https://www.gnu.org/software/make/)
2630

2731
> Windows support can be achieved with WSL or WSL2 natively in this repository.
2832
> We recommend WSL2 due to the excellent speed and support using `make` commands to manage Docker natively.
2933
30-
### Windows Setup
34+
#### Windows Setup
3135
Docker for Windows (https://www.docker.com/products/overview) will detect and use WSL2. Hypervisor is required for WSL **while it is not for WSL2**. For now, Windows 10 version 2004 and above are the only versions that have WSL2 available. Updates for Windows are being rolled out over the coming months, but to get it now, run the Update Assistant (see https://support.microsoft.com/en-us/help/3159635/windows-10-update-assistant)
3236

3337
For native-like speeds, add your code to a folder under the WSL2 OS you have set up. You may experience significant slowdown if you do not set up your project this way due to the fact that filesystem mounts in WSL2 are implemented as NFS. (see https://github.com/microsoft/WSL/issues/4197#issuecomment-650205399)
@@ -56,15 +60,9 @@ You can select WSL to run instead of the default DOS prompt. Open this project a
5660
5761
Attempting to use a drive letter mapping will not work correctly. Open the project in PHPStorm using the path at `\\wsl$\`
5862

59-
##
60-
61-
> On systems that don't ship with docker-compose (Linux), it should also be installed.
62-
63-
GNU Make (https://www.gnu.org/software/make/)
64-
6563
## Usage
6664

67-
Once docker has been installed, the environment can be brought right up:
65+
Once Docker is installed, the environment can be brought right up:
6866

6967
```
7068
make init
@@ -138,8 +136,8 @@ and XDebug configuration.
138136
volume is not deleted manually or with the "-v" option on `docker-compose down`.
139137
* This repository *does* track a composer.lock file meaning that versions of software
140138
installed are the ones that match the lock file. Currently this repository tracks
141-
the base installation provided by the [drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-project)
142-
with Drupal 8.8.1. You can upgrade with `make drupal-upgrade` or wait until this
139+
the base installation provided by the [drupal/recommended-project](https://github.com/drupal/recommended-project)
140+
with Drupal 9.0.1. You can upgrade with `make drupal-upgrade` or wait until this
143141
repository is updated. Certain files such as those provided by the Drupal scaffolding
144142
project may be subject to manipulation and may or may not upgrade cleanly. The default
145143
location for the hosted content in this project was moved from the default of `/web`

composer.json

Lines changed: 33 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11
{
2-
"name": "drupal-composer/drupal-project",
3-
"description": "Project template for Drupal 8 projects with composer",
2+
"name": "drupal/recommended-project",
3+
"description": "Project template for Drupal 8 projects with a relocated document root",
44
"type": "project",
5-
"license": "GPL-2.0+",
6-
"authors": [
7-
{
8-
"name": "",
9-
"role": ""
10-
}
11-
],
5+
"license": "GPL-2.0-or-later",
6+
"homepage": "https://www.drupal.org/project/drupal",
7+
"support": {
8+
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
9+
"chat": "https://www.drupal.org/node/314178"
10+
},
1211
"repositories": [
1312
{
1413
"type": "composer",
1514
"url": "https://packages.drupal.org/8"
1615
}
1716
],
1817
"require": {
19-
"composer/installers": "^1.2",
20-
"drupal-composer/drupal-scaffold": "^2.5",
18+
"composer/installers": "^1.9",
2119
"cweagans/composer-patches": "^1.6.5",
22-
"drupal/core": "^8.7.0",
23-
"drush/drush": "^9.0.0",
24-
"drupal/console": "^1.0.2",
25-
"webflo/drupal-finder": "^1.0.0",
26-
"webmozart/path-util": "^2.3",
27-
"zaporylie/composer-drupal-optimizations": "^1.0",
28-
"drupal/admin_toolbar": "^1.0",
29-
"vlucas/phpdotenv": "^2.4"
20+
"drupal/admin_toolbar": "^2.3",
21+
"drupal/core-composer-scaffold": "^9",
22+
"drupal/core-project-message": "^9",
23+
"drupal/core-recommended": "^9",
24+
"drush/drush": "^10.3",
25+
"vlucas/phpdotenv": "^5.0"
3026
},
3127
"require-dev": {
32-
"webflo/drupal-core-require-dev": "^8.7.0",
33-
"behat/behat": "^3.5.0",
34-
"emuse/behat-html-formatter": "^0.1.0",
35-
"bex/behat-screenshot": "^1.2",
36-
"drupal/drupal-extension": "~3.2",
37-
"jarnaiz/behat-junit-formatter": "^1.3.2",
38-
"drupal/devel": "^2.1",
39-
"jakub-onderka/php-parallel-lint": "^0.9.2",
40-
"jakub-onderka/php-console-highlighter": "^0.3.2"
28+
"behat/behat": "^3.7",
29+
"bex/behat-screenshot": "^2.1",
30+
"drupal/core-dev": "^9",
31+
"drupal/devel": "^4.0",
32+
"emuse/behat-html-formatter": "^0.2.0",
33+
"jakub-onderka/php-console-highlighter": "^0.4.0",
34+
"jakub-onderka/php-parallel-lint": "^1.0",
35+
"jarnaiz/behat-junit-formatter": "^1.3"
4136
},
4237
"conflict": {
4338
"drupal/drupal": "*"
@@ -49,35 +44,28 @@
4944
"scripts/composer/ScriptHandler.php"
5045
]
5146
},
52-
"scripts": {
53-
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
54-
"pre-install-cmd": [
55-
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
56-
],
57-
"pre-update-cmd": [
58-
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
59-
],
60-
"post-install-cmd": [
61-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
62-
],
63-
"post-update-cmd": [
64-
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
65-
]
66-
},
6747
"extra": {
48+
"drupal-scaffold": {
49+
"locations": {
50+
"web-root": "webroot/"
51+
}
52+
},
6853
"installer-paths": {
6954
"webroot/core": ["type:drupal-core"],
7055
"webroot/libraries/{$name}": ["type:drupal-library"],
7156
"webroot/modules/contrib/{$name}": ["type:drupal-module"],
7257
"webroot/profiles/contrib/{$name}": ["type:drupal-profile"],
7358
"webroot/themes/contrib/{$name}": ["type:drupal-theme"],
74-
"webroot/sites/all/drush/contrib/{$name}": ["type:drupal-drush"]
59+
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
60+
"webroot/modules/custom/{$name}": ["type:drupal-custom-module"],
61+
"webroot/themes/custom/{$name}": ["type:drupal-custom-theme"]
7562
}
7663
},
7764
"config": {
7865
"platform": {
7966
"php": "7.3",
8067
"ext-gd": "1"
81-
}
68+
},
69+
"sort-packages": true
8270
}
8371
}

0 commit comments

Comments
 (0)