소스 검색

Add comprehensive .gitignore for Node.js/Vue.js projects

- Add node_modules/, dist/, build-output/ directories
- Add environment files (.env, .env.local, etc.)
- Add npm/yarn logs and cache files
- Add package archives (*.tar.gz, *.zip, *.tgz)
- Add Yarn integrity and cache files

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Ryuiso 3 주 전
부모
커밋
c3fdbda988
1개의 변경된 파일60개의 추가작업 그리고 25개의 파일을 삭제
  1. 60 25
      .gitignore

+ 60 - 25
.gitignore

@@ -1,3 +1,38 @@
+# ---> Node.js
+node_modules/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.npm
+.eslintcache
+
+# ---> Dependencies
+vendor/
+
+# ---> Build outputs
+dist/
+build-output/
+*.log
+logs/
+
+# ---> Environment
+.env
+.env.local
+.env.*.local
+
+# ---> Package
+*.tar.gz
+*.zip
+*.tgz
+
+# ---> Yarn
+.yarn-integrity
+.pnp.*
+.yarn/cache
+.yarn/unplugged
+.yarn/build-state.yml
+.yarn/install-state.gz
+
 # ---> JetBrains
 # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
 
@@ -51,31 +86,31 @@ crashlytics-build.properties
 
 
 # ---> macOS
-.DS_Store
-.AppleDouble
-.LSOverride
-
-# Icon must end with two \r
-Icon
-
-
-# Thumbnails
-._*
-
-# Files that might appear in the root of a volume
-.DocumentRevisions-V100
-.fseventsd
-.Spotlight-V100
-.TemporaryItems
-.Trashes
-.VolumeIcon.icns
-
-# Directories potentially created on remote AFP share
-.AppleDB
-.AppleDesktop
-Network Trash Folder
-Temporary Items
-.apdisk
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
 
 # ---> Windows
 # Windows image file caches