1
0
Fork 0

Update for TYPO3 v11

This commit is contained in:
Marcel Kapfer 2022-06-20 19:24:22 +02:00
parent 9a9ada1a1c
commit d3fd5af56f
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
4 changed files with 124 additions and 88 deletions

View File

@ -8,20 +8,15 @@ router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: "10.3"
mysql_version: ""
database:
type: mariadb
version: "10.3"
nfs_mount_enabled: false
mutagen_enabled: false
use_dns_when_possible: true
composer_version: ""
composer_version: "2"
web_environment: []
# This config.yaml was created with ddev version v1.17.5
# webimage: drud/ddev-webserver:v1.17.4
# dbimage: drud/ddev-dbserver-mariadb-10.3:v1.17.3
# dbaimage: phpmyadmin:5
# However we do not recommend explicitly wiring these images into the
# config.yaml as they may break future versions of ddev.
# You can update this config.yaml using 'ddev config'.
nodejs_version: "16"
# Key features of ddev's config.yaml:
@ -32,21 +27,19 @@ web_environment: []
# docroot: <relative_path> # Relative path to the directory containing index.php.
# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4" "8.0"
# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"
# You can explicitly specify the webimage, dbimage, dbaimage lines but this
# You can explicitly specify the webimage but this
# is not recommended, as the images are often closely tied to ddev's' behavior,
# so this can break upgrades.
# webimage: <docker_image> # nginx/php docker image.
# dbimage: <docker_image> # mariadb docker image.
# dbaimage: <docker_image>
# mariadb_version and mysql_version
# ddev can use many versions of mariadb and mysql
# However these directives are mutually exclusive
# mariadb_version: 10.2
# mysql_version: 8.0
# database:
# type: <dbtype> # mysql, mariadb
# version: <version> # database version, like "10.3" or "8.0"
# Note that mariadb_version or mysql_version from v1.18 and earlier
# will automatically be converted to this notation with just a "ddev config --auto"
# router_http_port: <port> # Port to be used for http (defaults to port 80)
# router_https_port: <port> # Port for https (defaults to 443)
@ -56,6 +49,11 @@ web_environment: []
# "ddev xdebug" to enable xdebug and "ddev xdebug off" to disable it work better,
# as leaving xdebug enabled all the time is a big performance hit.
# xhprof_enabled: false # Set to true to enable xhprof and "ddev start" or "ddev restart"
# Note that for most people the commands
# "ddev xhprof" to enable xhprof and "ddev xhprof off" to disable it work better,
# as leaving xhprof enabled all the time is a big performance hit.
# webserver_type: nginx-fpm # or apache-fpm
# timezone: Europe/Berlin
@ -64,13 +62,23 @@ web_environment: []
# see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# For example Europe/Dublin or MST7MDT
# composer_version: ""
# if composer_version:"" it will use the current ddev default composer release.
# composer_root: <relative_path>
# Relative path to the composer root directory from the project root. This is
# the directory which contains the composer.json and where all Composer related
# commands are executed.
# composer_version: "2"
# if composer_version:"2" it will use the most recent composer v2
# It can also be set to "1", to get most recent composer v1
# or "2" for most recent composer v2.
# or "" for the default v2 created at release time.
# It can be set to any existing specific composer version.
# After first project 'ddev start' this will not be updated until it changes
# nodejs_version: "16"
# change from the default system Node.js version to another supported version, like 12, 14, 17, 18.
# Note that you can use 'ddev nvm' or nvm inside the web container to provide nearly any
# Node.js version, including v6, etc.
# additional_hostnames:
# - somename
# - someothername
@ -84,7 +92,7 @@ web_environment: []
# Please take care with this because it can cause great confusion.
# upload_dir: custom/upload/dir
# would set the destination path for ddev import-files to custom/upload/dir.
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir
# working_dir:
# web: /var/www/html
@ -97,12 +105,17 @@ web_environment: []
# Currently only these containers are supported. Some containers can also be
# omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit
# the "db" container, several standard features of ddev that access the
# database container will be unusable.
# database container will be unusable. In the global configuration it is also
# possible to omit ddev-router, but not here.
# nfs_mount_enabled: false
# Great performance improvement but requires host configuration first.
# See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container
# mutagen_enabled: false
# Experimental performance improvement using mutagen asynchronous updates.
# See https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen
# fail_on_hook_fail: False
# Decide whether 'ddev start' should be interrupted by a failing hook
@ -126,10 +139,18 @@ web_environment: []
# phpmyadmin_https_port: "8037"
# The PHPMyAdmin ports can be changed from the default 8036 and 8037
# host_phpmyadmin_port: "8036"
# The phpmyadmin (dba) port is not normally bound on the host at all, instead being routed
# through ddev-router, but it can be specified and bound.
# mailhog_port: "8025"
# mailhog_https_port: "8026"
# The MailHog ports can be changed from the default 8025 and 8026
# host_mailhog_port: "8025"
# The mailhog port is not normally bound on the host at all, instead being routed
# through ddev-router, but it can be bound directly to localhost if specified here.
# webimage_extra_packages: [php7.4-tidy, php-bcmath]
# Extra Debian packages that are needed in the webimage can be added here
@ -148,7 +169,7 @@ web_environment: []
# If you prefer you can change this to "ddev.local" to preserve
# pre-v1.9 behavior.
# ngrok_args: --subdomain mysite --auth username:pass
# ngrok_args: --basic-auth username:pass1234
# Provide extra flags to the "ngrok http" command, see
# https://ngrok.com/docs#http or run "ngrok http -h"
@ -168,6 +189,12 @@ web_environment: []
# This is to enable experimentation with alternate file mounting strategies.
# For advanced users only!
# bind_all_interfaces: false
# If true, host ports will be bound on all network interfaces,
# not just the localhost interface. This means that ports
# will be available on the local network if the host firewall
# allows it.
# Many ddev commands can be extended to run tasks before or after the
# ddev command is executed, for example "post-start", "post-import-db",
# "pre-composer", "post-composer"

9
.gitignore vendored
View File

@ -1,2 +1,9 @@
# ddev/composer/TYPO3 installation directory
.build
composer.lock
# Operating Systems
.DS_Store
# Editors
.idea
nbproject

View File

@ -11,8 +11,8 @@ To start with it is of course required to install =ddev= first. After setting up
* How it works
The boilerplate contains a =composer.json= file for *TYPO3 v10* created with =ddev composer create "typo3/cms-base-distribution:^10" --prefer-dist=. The corresponding =composer.lock= file is also included in the =.gitignore=. In the directory =.ddev= there is a basic =config.yaml= file containing the DDEV configuration which is accompanied with the =docker-composer.environment.yaml= file for setting the =TYPO3_CONTEXT= to =Development=. Additionally the =config.yaml= file and the =composer.json= define that the TYPO3 installation and configuration is kept in the =.build= directory (which is also ignored in =.gitignore=). The last file to mention is the =.gitattributes= which defines =export-ignore= rules for the relevant files/directories in this repository.
The boilerplate contains a =composer.json= file for *TYPO3 v11* (check the other branches of this repo for older version) created with =ddev composer create "typo3/cms-base-distribution"= . In the directory =.ddev= there is a basic =config.yaml= file containing the DDEV configuration which is accompanied with the =docker-composer.environment.yaml= file for setting the =TYPO3_CONTEXT= to =Development=. Additionally the =config.yaml= file and the =composer.json= define that the TYPO3 installation and configuration is kept in the =.build= directory (which is ignored in =.gitignore=). The last file to mention is the =.gitattributes= which defines =export-ignore= rules for the relevant files/directories in this repository.
* Credits
All credits go to contributors of the [[https://github.com/benjaminkott/bootstrap_package][bootstrap_package]] especially Benjamin Kott and Gilbertsoft. The content of this repository is more or less exactly modeled after it.
The credits for the original boilerplate repository (for TYPO3 v10) go to contributors of the [[https://github.com/benjaminkott/bootstrap_package][bootstrap_package]] especially Benjamin Kott and Gilbertsoft. The original content for TYPO3 v10 of this repository is more or less exactly modeled after it and afterwards updated for newer versions on my own.

View File

@ -1,62 +1,64 @@
{
"name": "mmk2410/typo3-ddev-boilerplate",
"description" : "TYPO3 DDEV-Local Boilerplate",
"license": "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2"
},
"sort-packages": true,
"vendor-dir": ".build/vendor",
"bin-dir": ".build/bin"
"name": "mmk2410/typo3-ddev-boilerplate",
"description" : "TYPO3 DDEV-Local Boilerplate",
"license": "GPL-2.0-or-later",
"config": {
"allow-plugins": {
"typo3/class-alias-loader": true,
"typo3/cms-composer-installers": true
},
"require": {
"helhum/typo3-console": "^6.0.0",
"typo3/cms-about": "^10.4",
"typo3/cms-backend": "^10.4",
"typo3/cms-belog": "^10.4",
"typo3/cms-beuser": "^10.4",
"typo3/cms-core": "^10.4",
"typo3/cms-dashboard": "^10.4",
"typo3/cms-extbase": "^10.4",
"typo3/cms-extensionmanager": "^10.4",
"typo3/cms-felogin": "^10.4",
"typo3/cms-filelist": "^10.4",
"typo3/cms-fluid": "^10.4",
"typo3/cms-fluid-styled-content": "^10.4",
"typo3/cms-form": "^10.4",
"typo3/cms-frontend": "^10.4",
"typo3/cms-impexp": "^10.4",
"typo3/cms-info": "^10.4",
"typo3/cms-install": "^10.4",
"typo3/cms-recordlist": "^10.4",
"typo3/cms-rte-ckeditor": "^10.4",
"typo3/cms-seo": "^10.4",
"typo3/cms-setup": "^10.4",
"typo3/cms-sys-note": "^10.4",
"typo3/cms-t3editor": "^10.4",
"typo3/cms-tstemplate": "^10.4",
"typo3/cms-viewpage": "^10.4"
"platform": {
"php": "7.4.1"
},
"scripts": {
"typo3-cms-scripts": [
"typo3cms install:fixfolderstructure",
"typo3cms install:generatepackagestates"
],
"ddev-symlink-project": [
"mkdir -p .build/web/typo3conf",
"[ -L .build/web/typo3conf/ext/typo3-ddev-boilerplate ] || ln -svnf ../../../../ .build/web/typo3conf/ext/typo3-ddev-boilerplate"
],
"post-autoload-dump": [
"@typo3-cms-scripts",
"@ddev-symlink-project"
]
},
"extra": {
"typo3/cms": {
"extension-key": "typo3-ddev-boilerplate",
"web-dir": ".build/web",
"app-dir": ".build"
}
"sort-packages": true,
"vendor-dir": ".build/vendor",
"bin-dir": ".build/bin"
},
"require": {
"helhum/typo3-console": "^7.0.2",
"typo3/cms-backend": "^11.5.0",
"typo3/cms-belog": "^11.5.0",
"typo3/cms-beuser": "^11.5.0",
"typo3/cms-core": "^11.5.0",
"typo3/cms-dashboard": "^11.5.0",
"typo3/cms-extbase": "^11.5.0",
"typo3/cms-extensionmanager": "^11.5.0",
"typo3/cms-felogin": "^11.5.0",
"typo3/cms-filelist": "^11.5.0",
"typo3/cms-fluid": "^11.5.0",
"typo3/cms-fluid-styled-content": "^11.5.0",
"typo3/cms-form": "^11.5.0",
"typo3/cms-frontend": "^11.5.0",
"typo3/cms-impexp": "^11.5.0",
"typo3/cms-info": "^11.5.0",
"typo3/cms-install": "^11.5.0",
"typo3/cms-recordlist": "^11.5.0",
"typo3/cms-rte-ckeditor": "^11.5.0",
"typo3/cms-seo": "^11.5.0",
"typo3/cms-setup": "^11.5.0",
"typo3/cms-sys-note": "^11.5.0",
"typo3/cms-t3editor": "^11.5.0",
"typo3/cms-tstemplate": "^11.5.0",
"typo3/cms-viewpage": "^11.5.0"
},
"scripts":{
"typo3-cms-scripts": [
"typo3cms install:fixfolderstructure"
],
"ddev-symlink-project": [
"mkdir -p .build/web/typo3conf/ext",
"[ -L .build/web/typo3conf/ext/typo3-ddev-boilerplate ] || ln -svnf ../../../../ .build/web/typo3conf/ext/typo3-ddev-boilerplate"
],
"post-autoload-dump": [
"@typo3-cms-scripts",
"@ddev-symlink-project"
]
},
"extra": {
"typo3/cms": {
"extension-key": "typo3-ddev-boilerplate",
"web-dir": ".build/web",
"app-dir": ".build"
}
}
}