The tools inside this repository will create a modified Drupal environment, focused on development and debugging.
DO NOT USE IN PRODUCTION - This is a local development tool!
Spin up a ready-to-code Drupal 10/11 CMS DDEV based development container with preconfigured Drupal Best-Practice Dev-Modules and Visual Studio Code Settings/Extensions in three commands! š
May take ~5 min - only needed once, at initialization.
Quickly startup a standard dev environment using Drupal 10, meant to be used for testing and working on contrib modules / issues:
git clone https://github.com/webksde/ddev-vscode-devcontainer-drupal-template.git standard-vscode-drupal && cd standard-vscode-drupal && ddev drowl-init
or startup a core dev environment using gitified Drupal 11.x-dev, meant to be used for working on core issues:
git clone https://github.com/webksde/ddev-vscode-devcontainer-drupal-template.git core-vscode-drupal && cd core-vscode-drupal && ddev drowl-init-dev
Tipps:
ddev drowl-init-dev
.Provides a plug and play š DDEV (Docker) based development environment with attached VSCode
VS-Code Extensions
VS-Code Launch configuration
CLI-Tooling
Drupal Development Modules
Beautifully packaged for easy project and environment switching.
Feel free to fork for other Frameworks or improve for lovely Drupal! ā¤ļø
ddev config global --xdebug-ide-location=container
ddev config global --xdebug-ide-location=wsl2
).mkdir project-folder && cd project-folder
git clone git@github.com:webksde/ddev-vscode-devcontainer-drupal-template.git .
ddev drowl-init
to directly start up the environment using Drupal 10 with VSCode / Drupal Best Practice Toolsddev describe
to check the status & URLs of your Project and ddev code
to run your prepared VSCode IDE!
ddev code
to attach VSCode to your running Container.ddev phpunit path/to/tests
to Test Classes using PHPUnit.ddev phpunit-coverage path/to/cover
to create a test coverage of the given file-directory.ddev phpcs path/to/sniff
to check your Code using Drupal Coding Standards.ddev phpstan path/to/execute
to look for deprecated and 'dirty' code.ddev eslint path/to/sniff (--fix)
for linting / auto-fixing javascript code based on Drupal Coding Standards.ddev stylelint web/modules/custom/my_module
for linting css files based on Drupal Coding Standards.ddev xdebug on
to turn on xdebug, then in VSCode go to 'Run and Debug', 'Listen for XDebug' and open your Project in the Browser.ddev import-db --target-db=db --src=db.sql.gz
to import a database file.ddev drowl-reset-db
to reset the database to its state after initial startup.ddev dump-db ddev
to dump your main database tablewise.ddev deploy-db ddev
to import your tablewise dump.
ddev delete -y
deletes the container and unlists the project.You can always update ddev using sudo apt update && sudo apt upgrade
inside your Ubuntu / WSL istance.
ddev delete
. Check your Docker Container instances and delete the old Docker Cluster.Special thanks to Joachim for creating https://github.com/joachim-n/drupal-core-development-project/, which helped us to make this project valid for work on drupal core issues.