适用于大部分前端项目
# 忽略以下文件和目录
node_modules/
# 忽略Node.js依赖模块目录
dist/
# 忽略打包输出目录,通常是打包后的生产文件
.cache/
# 忽略开发工具生成的缓存文件目录
.env
# 忽略环境变量文件
*.log
# 忽略日志文件
.DS_Store
# 忽略macOS系统生成的隐藏文件
# 编辑器/IDE特定的文件和目录
.vscode/
# 忽略Visual Studio Code配置
.idea/
# 忽略IntelliJ IDEA配置
*.sublime-project
# 忽略Sublime Text项目文件
# 依赖管理文件
yarn.lock
# 忽略Yarn依赖版本锁定文件
package-lock.json
# 忽略npm依赖版本锁定文件
# 临时文件
*.swp
# 忽略Vim的交换文件
*.swo
# 忽略Vim的备份文件
# 前端开发特定的规则
bower_components/
# 忽略Bower依赖目录
.eslintcache/
# 忽略ESLint缓存文件目录
.gitignore
# 忽略.gitignore文件(针对多个开发者的协作)
build/
# 忽略构建输出目录
log/
# 忽略日志文件目录
tmp/
# 忽略临时文件目录
tests/
# 忽略测试文件目录
node_modules/
# 忽略Node.js依赖模块目录(如果使用Yarn,可忽略)
/coverage/
# 忽略代码覆盖率报告
# 其他可能需要忽略的文件或目录
.editorconfig
# 忽略.editorconfig文件
.env.local
# 忽略本地开发环境配置文件
# 自动生成的文件
#.vscode-server/ # 忽略VS Code服务器的临时目录(如果适用)
#.history/ # 忽略历史记录文件目录
# 构建工具生成的文件
# 本地数据库文件
适用于Andriods的React-Native项目
# OSX
#
.DS_Store
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
.cxx/
# node.js
#
node_modules/
npm-debug.log
yarn-error.log
# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output
# Bundle artifact
*.jsbundle
# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/