Skip to content

Commit a93799d

Browse files
WIP chore(#17): pull in upstream foundry changes (#18)
* chore: pull in upstream foundry changes * fix: npm missing * fix: run ddev commands from drupal directory Co-authored-by: Brian Gilbert <[email protected]> Co-authored-by: Stuart Clark <[email protected]>
1 parent 0e74976 commit a93799d

File tree

278 files changed

+8060
-6826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+8060
-6826
lines changed

.gitpod.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
image: drupalpod/drupalpod-gitpod-base:20211116-ready-made-envs
1+
image:
2+
file: .gitpod/Dockerfile
23

34
tasks:
45
- init: |
56
# Installing DDev and Drupal backend.
6-
.gitpod/scripts/ddev-setup.sh
7-
.gitpod/scripts/drupal-setup.sh
7+
$GITPOD_REPO_ROOT/.gitpod/scripts/ddev-setup.sh
8+
cd $GITPOD_REPO_ROOT/drupal && ddev drupal-install
89
# Installing Nuxt/Druxt frontend.
9-
.gitpod/scripts/nuxt-setup.sh
10+
$GITPOD_REPO_ROOT/.gitpod/scripts/nuxt-setup.sh
1011
command: |
11-
.gitpod/scripts/ddev-setup.sh
12-
.gitpod/scripts/nuxt-setup.sh
12+
$GITPOD_REPO_ROOT/.gitpod/scripts/ddev-setup.sh
13+
$GITPOD_REPO_ROOT/.gitpod/scripts/nuxt-setup.sh
1314
cd $GITPOD_REPO_ROOT/nuxt && NUXT_TELEMETRY_DISABLED=1 npm run dev
1415
1516
# VScode xdebug extension

.gitpod/scripts/ddev-setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env bash
22

3-
# Download ddev's images
4-
ddev debug download-images
5-
63
# Set up ddev for use on gitpod
74
DRUPAL_DIR="${GITPOD_REPO_ROOT}/drupal"
85

6+
# Download ddev's images
7+
cd $DRUPAL_DIR && ddev debug download-images
8+
99
# Misc housekeeping before start
10-
ddev config global --instrumentation-opt-in=true
10+
cd $DRUPAL_DIR && ddev config global --instrumentation-opt-in=true
1111

1212
# Start ddev
1313
cd $DRUPAL_DIR && ddev start -y

.gitpod/scripts/drupal-setup.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
## Description: Install Drupal
4+
## Usage: drupal-install
5+
## Example: "ddev drupal-install"
6+
7+
composer install
8+
drush -y tome:install
9+
drush php-eval 'node_access_rebuild();'

drupal/.ddev/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Foundry
1+
name: DruxtFoundry
22
type: drupal9
33
docroot: web
4-
php_version: "7.4"
4+
php_version: "8.1"
55
webserver_type: nginx-fpm
66
router_http_port: "80"
77
router_https_port: "443"

drupal/.gitignore

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/.ddev/docker-compose.host-docker-internal.yaml
2-
31
# Ignore directories generated by Composer
4-
/drush/Commands/contrib/
52
/drush/contrib/
3+
/drush/Commands/contrib/
64
/vendor/
75
/web/core/
86
/web/modules/contrib/
@@ -21,7 +19,11 @@
2119

2220
# Ignore files generated by common IDEs
2321
/.idea/
24-
/.vscode/
22+
.vscode/*
23+
!.vscode/launch.json
2524

2625
# Ignore .env files as they are personal
2726
/.env
27+
28+
# Ignore auto-generated environmet files
29+
/.ddev/docker-compose.host-docker-internal.yaml

drupal/composer.json

Lines changed: 84 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -8,83 +8,89 @@
88
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
99
"chat": "https://www.drupal.org/node/314178"
1010
},
11-
"repositories": [
12-
{
11+
"repositories": {
12+
"drupal": {
1313
"type": "composer",
1414
"url": "https://packages.drupal.org/8"
1515
}
16-
],
16+
},
1717
"require": {
18-
"composer/installers": "1.12.0",
19-
"cweagans/composer-patches": "1.7.2",
18+
"php": ">=8.1",
19+
"composer/installers": "^2.0",
20+
"cweagans/composer-patches": "^1.0",
2021
"drupal-tome/tome_drush": "dev-master",
21-
"drupal/admin_audit_trail": "1.0.0-beta1",
22-
"drupal/admin_toolbar": "3.0.3",
23-
"drupal/advanced_text_formatter": "2.1.1",
24-
"drupal/allowed_formats": "1.3.0",
25-
"drupal/anonymous_redirect": "2.2.0-rc1",
26-
"drupal/coffee": "1.2.0",
27-
"drupal/config_filter": "2.2.0",
28-
"drupal/content_lock": "2.2.0",
29-
"drupal/core-composer-scaffold": "9.2.8",
30-
"drupal/core-project-message": "9.2.8",
31-
"drupal/core-recommended": "9.2.8",
32-
"drupal/diff": "1.0.0",
33-
"drupal/druxt": "1.1.1",
34-
"drupal/dynamic_entity_reference": "2.0.0-alpha15",
35-
"drupal/entity_browser": "2.6.0",
36-
"drupal/entity_browser_enhanced": "1.0.0",
37-
"drupal/entity_clone": "1.0.0-beta6",
22+
"drupal/admin_audit_trail": "^1.0",
23+
"drupal/admin_toolbar": "^3.0",
24+
"drupal/advanced_text_formatter": "^2.1",
25+
"drupal/allowed_formats": "^1.3",
26+
"drupal/anonymous_redirect": "^2.2",
27+
"drupal/coffee": "^1.2",
28+
"drupal/config_filter": "^2.2",
29+
"drupal/config_ignore": "^3.0",
30+
"drupal/content_lock": "^2.2",
31+
"drupal/core-composer-scaffold": "^9.3",
32+
"drupal/core-project-message": "^9.3",
33+
"drupal/core-recommended": "^9.3",
34+
"drupal/diff": "^1.0",
35+
"drupal/druxt": "^1.1.1",
36+
"drupal/dynamic_entity_reference": "^2.0",
37+
"drupal/entity_browser": "^2.6",
38+
"drupal/entity_browser_enhanced": "^1.0",
39+
"drupal/entity_clone": "^1.0",
3840
"drupal/entity_display_mode": "^1.0",
39-
"drupal/entity_usage": "2.0.0-beta6",
40-
"drupal/environment_indicator": "4.0.3",
41-
"drupal/exclude_node_title": "1.3.0",
42-
"drupal/field_group": "3.2.0",
43-
"drupal/field_tools": "1.0.0-alpha7",
44-
"drupal/focal_point": "1.5.0",
45-
"drupal/gin": "3.x-dev",
41+
"drupal/entity_usage": "^2.0",
42+
"drupal/environment_indicator": "^4.0",
43+
"drupal/exclude_node_title": "^1.3",
44+
"drupal/field_group": "^3.2",
45+
"drupal/field_tools": "^1.0",
46+
"drupal/focal_point": "^1.5",
47+
"drupal/gin": "^3.x-dev",
4648
"drupal/gin_login": "1.x-dev",
4749
"drupal/gin_toolbar": "1.x-dev",
48-
"drupal/jsonapi_hypermedia": "1.6.0",
49-
"drupal/length_indicator": "1.1.0",
50-
"drupal/linky": "1.0.0-beta1",
51-
"drupal/linky_revision_ui": "2.127.2",
52-
"drupal/linkychecker": "2.0.0-beta1",
53-
"drupal/linkyreplacer": "2.1.0",
54-
"drupal/m4032404": "1.0.0-alpha5",
55-
"drupal/masquerade": "2.0.0-beta4",
56-
"drupal/maxlength": "2.0.0-rc1",
57-
"drupal/media_file_delete": "1.1.0",
58-
"drupal/memcache": "2.3.0",
59-
"drupal/node_edit_protection": "1.0.0",
60-
"drupal/oembed_providers": "2.0.0",
61-
"drupal/paragraphs_ee": "1.8.0",
62-
"drupal/pathauto": "1.8.0",
63-
"drupal/prevent_homepage_deletion": "1.4.0",
64-
"drupal/redirect": "1.6.0",
65-
"drupal/revision_log_default": "1.2.0",
66-
"drupal/role_delegation": "1.1.0",
67-
"drupal/scheduled_transitions": "2.1.0",
68-
"drupal/schema_metatag": "2.2.0",
69-
"drupal/security_review": "1.0.0-alpha2",
70-
"drupal/simple_oauth": "5.0.5",
71-
"drupal/simple_sitemap": "4.0.0-rc1",
72-
"drupal/title_field_for_manage_display": "2.0.0",
73-
"drupal/tome": "1.4.0",
74-
"drupal/transliterate_filenames": "1.5.0",
75-
"drupal/username_enumeration_prevention": "1.2.0",
76-
"drupal/viewfield": "3.0.0-beta6"
50+
"drupal/jsonapi_hypermedia": "^1.6",
51+
"drupal/jsonapi_node_preview": "^1.0@beta",
52+
"drupal/jsonapi_node_preview_tab": "1.0.x-dev",
53+
"drupal/layout_paragraphs": "2.0.x-dev@dev",
54+
"drupal/length_indicator": "^1.2",
55+
"drupal/linky": "^1.0",
56+
"drupal/linky_revision_ui": "^2.127",
57+
"drupal/linkychecker": "^2.0",
58+
"drupal/linkyreplacer": "^2.1",
59+
"drupal/m4032404": "^1.0",
60+
"drupal/masquerade": "^2.0",
61+
"drupal/maxlength": "^2.0",
62+
"drupal/media_file_delete": "^1.1",
63+
"drupal/memcache": "^2.3",
64+
"drupal/node_edit_protection": "^1.0",
65+
"drupal/oembed_providers": "^2.0",
66+
"drupal/paragraphs_ee": "^2.0",
67+
"drupal/pathauto": "^1.8",
68+
"drupal/prevent_homepage_deletion": "^1.4",
69+
"drupal/redirect": "^1.7",
70+
"drupal/revision_log_default": "^1.2",
71+
"drupal/role_delegation": "^1.1",
72+
"drupal/scheduled_transitions": "^2.3",
73+
"drupal/schema_metatag": "^2.2",
74+
"drupal/security_review": "^1.0",
75+
"drupal/simple_oauth": "^5.2",
76+
"drupal/simple_sitemap": "^4.x-dev",
77+
"drupal/title_field_for_manage_display": "^2.0",
78+
"drupal/tome": "^1.4",
79+
"drupal/transliterate_filenames": "^2.0",
80+
"drupal/username_enumeration_prevention": "^1.2",
81+
"drupal/viewfield": "^3.0"
7782
},
7883
"require-dev": {
79-
"drupal/core-dev": "9.2.8",
80-
"drush/drush": "10.6.2"
84+
"drupal/core-dev": "^9.3",
85+
"drush/drush": "^10.5"
8186
},
8287
"conflict": {
8388
"drupal/drupal": "*"
8489
},
8590
"minimum-stability": "dev",
8691
"prefer-stable": true,
8792
"config": {
93+
"php": "8.1",
8894
"sort-packages": true,
8995
"allow-plugins": {
9096
"composer/installers": true,
@@ -157,25 +163,38 @@
157163
"enable-patching": true,
158164
"patches": {
159165
"drupal/core": {
160-
"https://www.drupal.org/project/drupal/issues/3247553#comment-14280389": "https://www.drupal.org/files/issues/2021-11-04/3247553-3.patch"
166+
"https://www.drupal.org/project/drupal/issues/3247553#comment-14280389": "https://www.drupal.org/files/issues/2021-11-04/3247553-3.patch",
167+
"https://www.drupal.org/project/drupal/issues/2350939#comment-14289157": "https://www.drupal.org/files/issues/2021-11-12/2350939-202.patch"
161168
},
162169
"drupal/entity_clone": {
163-
"Batch field creation https://www.drupal.org/project/entity_clone/issues/2845094#comment-14163283": "https://git.drupalcode.org/project/entity_clone/-/merge_requests/8.diff"
170+
"Batch field creation https://www.drupal.org/project/entity_clone/issues/2845094#comment-14163283": "./patch/2845094.diff"
164171
},
165172
"drupal/entity_display_mode": {
166173
"Automated Drupal Rector fixes https://www.drupal.org/project/entity_display_mode/issues/3140377#comment-13635386": "https://www.drupal.org/files/issues/2020-05-23/entity_display_mode.1.x-dev.rector.patch"
167174
},
175+
"drupal/dynamic_entity_reference": {
176+
"https://www.drupal.org/project/dynamic_entity_reference/issues/3262121#comment-14396414": "./patch/3262121-by-realityloop-Rename-Label-to-Item-to.patch"
177+
},
168178
"drupal/focal_point": {
169179
"Preview link accidentally closes the media library https://www.drupal.org/project/focal_point/issues/3162210#comment-13855854": "https://www.drupal.org/files/issues/2020-10-11/preview_link_accidentally_closes_the_media_library-3162210-19.patch"
170180
},
171181
"drupal/gin": {
172-
"https://www.drupal.org/project/gin/issues/3217391#comment-14212917": "https://git.drupalcode.org/project/gin/-/merge_requests/38.diff"
182+
"https://www.drupal.org/project/gin/issues/3217391#comment-14212917": "./patch/3217391.diff",
183+
"https://www.drupal.org/project/gin/issues/3194226#comment-14415576": "./patch/3194226.diff"
173184
},
174185
"drupal/gin_toolbar": {
175-
"https://www.drupal.org/project/gin_toolbar/issues/3217393": "https://git.drupalcode.org/project/gin_toolbar/-/merge_requests/9.diff"
186+
"https://www.drupal.org/project/gin_toolbar/issues/3217393": "./patch/3217393.diff"
187+
},
188+
"drupal/layout_paragraphs": {
189+
"https://www.drupal.org/project/layout_paragraphs/issues/3259729": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/60.diff",
190+
"https://www.drupal.org/project/layout_paragraphs/issues/3265807": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/68.diff",
191+
"https://www.drupal.org/project/layout_paragraphs/issues/3214406#comment-14425196": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/70.diff"
176192
},
177193
"drupal/node_edit_protection": {
178-
"Triggers if button used instead of input https://www.drupal.org/project/node_edit_protection/issues/3208719": "https://git.drupalcode.org/project/node_edit_protection/-/merge_requests/1.diff"
194+
"Triggers if button used instead of input https://www.drupal.org/project/node_edit_protection/issues/3208719": "./patch/3208719.diff"
195+
},
196+
"drupal/tome": {
197+
"https://www.drupal.org/project/tome/issues/3257363#comment-14395629": "https://www.drupal.org/files/issues/2022-02-02/3257363-3.patch"
179198
}
180199
}
181200
}

0 commit comments

Comments
 (0)