From 3de849502a3e4122b8ac1a1ef74f5240af56fb40 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Mon, 15 Sep 2025 19:01:18 +0800 Subject: [PATCH] chore: update .gitignore with comprehensive OS and tool specific patterns - Add macOS specific patterns for system and temporary files - Include Linux patterns for temporary and trash files - Add Windows patterns for thumbnails, installer files and shortcuts - Update JetBrains IDE patterns and remove outdated entries - Add Gradle, Java, Node.js specific patterns - Include patterns for modern JS tools like Vite, SvelteKit - Remove outdated patterns and consolidate similar entries --- .gitignore | 199 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 146 insertions(+), 53 deletions(-) diff --git a/.gitignore b/.gitignore index 91a163e..e0d19bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,24 +1,83 @@ -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +### macOS +# General +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Linux +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# Metadata left by Dolphin file manager, which comes with KDE Plasma +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +# Log files created by default by the nohup command +nohup.out + +### Windows + +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### JetBrains IDE +# Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff -.idea/ +.idea # Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -# auto-import. -# .idea/artifacts -# .idea/compiler.xml -# .idea/jarRepositories.xml -# .idea/modules.xml -# .idea/*.iml -# .idea/modules -# *.iml -# *.ipr - -# Mongo Explorer plugin -.idea/**/mongoSettings.xml +*.iml +*.ipr # File-based project format *.iws @@ -26,9 +85,6 @@ # IntelliJ out/ -# mpeltonen/sbt-idea plugin -.idea_modules/ - # JIRA plugin atlassian-ide-plugin.xml @@ -38,20 +94,66 @@ crashlytics.properties crashlytics-build.properties fabric.properties -# Editor-based Rest Client -.idea/httpRequests +# Editor-based HTTP Client +http-client.private.env.json -# Android studio 3.1+ serialized cache file -.idea/caches/build_file_checksums.ser +### Gradle +.gradle +**/build/ +!**/src/**/build/ +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Avoid ignore Gradle wrappper properties +!gradle-wrapper.properties + +# Cache of project +.gradletasknamecache + +# Eclipse Gradle plugin generated files +# Eclipse Core +.project +# JDT-specific (Eclipse Java Development Tools) +.classpath + +### Java +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +### Node.js # Logs logs -*.log +#*.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* -.pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json @@ -103,12 +205,6 @@ web_modules/ # Optional stylelint cache .stylelintcache -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - # Optional REPL history .node_repl_history @@ -120,10 +216,8 @@ web_modules/ # dotenv environment variable files .env -.env.development.local -.env.test.local -.env.production.local -.env.local +.env.* +!.env.example # parcel-bundler cache (https://parceljs.org/) .cache @@ -148,7 +242,10 @@ dist # vuepress v2.x temp and cache directory .temp -.cache +#.cache + +# Sveltekit cache directory +.svelte-kit/ # vitepress build output **/.vitepress/dist @@ -168,28 +265,24 @@ dist # DynamoDB Local files .dynamodb/ +# Firebase cache directory +.firebase/ + # TernJS port file .tern-port # Stores VSCode versions used for testing VSCode extensions .vscode-test -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz +# yarn v3 .pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -!.vscode/*.code-snippets - -# Local History for Visual Studio Code -.history/ - -# Built Visual Studio Code Extensions -*.vsix \ No newline at end of file +# Vite logs files +vite.config.js.timestamp-* +vite.config.ts.timestamp-* \ No newline at end of file