From dc5d5a0c1a88f8c77c3fe9e0aad09198a9219cb4 Mon Sep 17 00:00:00 2001 From: gluebox Date: Wed, 8 Oct 2025 11:51:14 -0400 Subject: [PATCH] Add .gitignore for Drupal 11 + DDEV project --- .gitignore | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..4c7ca582 --- /dev/null +++ b/.gitignore @@ -0,0 +1,111 @@ +# ------------------------------------------------------------------------------ +# 🧠 Core Drupal / Composer structure +# ------------------------------------------------------------------------------ + +# Ignore vendor libraries; they're recreated by composer install. +vendor/ + +# Ignore composer local cache or artifacts +composer.phar +composer.lock.bak +auth.json + +# ------------------------------------------------------------------------------ +# 🌐 Webroot (generated by composer) +# ------------------------------------------------------------------------------ + +# Ignore transient Drupal files +/web/sites/default/files/ +/web/sites/default/private/ +/web/sites/simpletest/ +/web/sites/*/settings.local.php +/web/sites/*/services.local.yml +/web/sites/*/settings.ddev.php +/web/sites/*/settings.docker.php +/web/sites/*/settings.travis.php + +# Keep example templates +!web/sites/example.settings.local.php + +# Ignore core and contrib build artifacts +/web/core/ +/web/modules/contrib/ +/web/profiles/contrib/ +/web/themes/contrib/ +/web/libraries/ + +# But keep anything custom you create +!web/modules/custom/ +/web/modules/custom/*/node_modules/ +/web/themes/custom/ +/web/themes/custom/*/node_modules/ + +# ------------------------------------------------------------------------------ +# ⚙️ Configuration exports +# ------------------------------------------------------------------------------ + +# Keep the exported config directory if it exists +!/config/ +# But ignore temporary config sync staging dirs +/config/sync/.htaccess +/config/sync/.DS_Store + +# ------------------------------------------------------------------------------ +# 🧰 DDEV & environment +# ------------------------------------------------------------------------------ + +# DDEV-generated caches, logs, or imports +.ddev/.downloads/ +.ddev/.import-db/ +.ddev/.upload-db/ +.ddev/.upload-files/ +.ddev/commands/host/db-restore +.ddev/.ddev-databases/ +.ddev/.logs/ + +# Keep ddev config files themselves +!.ddev/config.yaml +!.ddev/docker-compose.* +!.ddev/providers.yaml +!.ddev/global_config.yaml + +# ------------------------------------------------------------------------------ +# 💻 OS & IDE +# ------------------------------------------------------------------------------ + +# macOS metadata +.DS_Store +.AppleDouble +.LSOverride + +# VS Code +.vscode/* +!.vscode/settings.json +!.vscode/extensions.json + +# PhpStorm / IntelliJ +.idea/ +*.iml + +# Logs & backups +*.log +*.sql +*.sqlite +*.tar.gz +*.zip +*.bak +*.tmp + +# ------------------------------------------------------------------------------ +# ✅ Misc +# ------------------------------------------------------------------------------ + +# Node, NPM, and front-end assets +node_modules/ +npm-debug.log +yarn-error.log + +# ------------------------------------------------------------------------------ +# END +# ------------------------------------------------------------------------------ +