From 193c0d0d9ceeb7ee524f8ae0fa6aee4c1e010581 Mon Sep 17 00:00:00 2001 From: Md Sayful Islam Date: Thu, 16 Oct 2025 16:07:30 +0600 Subject: [PATCH] Add .gitignore file to theme boilerplate This adds a comprehensive .gitignore file to prevent users from accidentally committing unnecessary files to version control: - WordPress uploads, cache, and backup directories - Dependencies (node_modules, vendor, bower_components) - Build artifacts and source maps - IDE/editor configuration files - OS-specific files (.DS_Store, Thumbs.db) - Environment files and logs - Temporary and build directories This ensures a cleaner repository for users generating themes from the Underscores starter. --- .gitignore | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ffe8a1b --- /dev/null +++ b/.gitignore @@ -0,0 +1,67 @@ +# WordPress +wp-config.php +wp-content/uploads/ +wp-content/blogs.dir/ +wp-content/upgrade/ +wp-content/backup-db/ +wp-content/cache/ +wp-content/backups/ + +# Theme build files +*.css.map +*.js.map + +# Dependencies +node_modules/ +vendor/ +bower_components/ + +# IDE and editor files +.vscode/ +.idea/ +*.sublime-project +*.sublime-workspace +*.swp +*.swo +*~ +.project +.settings/ +.buildpath + +# OS generated files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +Desktop.ini + +# Log files +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Package manager files +package-lock.json +yarn.lock +composer.lock + +# Build directories +dist/ +build/ +.sass-cache/ +.cache/ + +# Environment variables +.env +.env.local +.env.*.local + +# Temporary files +*.tmp +*.temp +.tmp/ +.temp/