# 依赖目录
node_modules
**/node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# 版本控制
.git
.gitignore
.gitattributes

# 环境变量和配置
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.react_app
.env.platform

# 测试和覆盖率
.nyc_output
coverage
*.lcov
test-results

# 构建产物（在构建阶段会重新生成）
dist
build
.next
out

# 开发工具
.vscode
.idea
*.swp
*.swo
*~

# 系统文件
.DS_Store
Thumbs.db

# 日志文件
logs
*.log

# 临时文件
tmp
temp

# 文档和示例
README.md
*.md
docs
example

# 其他不必要的文件
.prettierrc
.eslintrc*
.editorconfig
.husky
.changeset
.vercel
tsconfig.json
biome.json
vitest.config.ts

# React App 专用 .dockerignore 文件
# 使用方法：docker build -f Dockerfile_react_app -t dify-chat-app-react:latest .

# ================================
# 开发和构建产物
# ================================
**/dist
**/build
**/.next
**/coverage
**/.nyc_output

# ================================
# 版本控制
# ================================
.git
.gitignore
**/.gitkeep

# ================================
# 环境和配置文件
# ================================
.env*
!.env.example
**/.env*
!**/.env.example

# ================================
# 开发工具配置
# ================================
.vscode
.idea
**/.vscode
**/.idea
.DS_Store
**/.DS_Store
Thumbs.db
**/Thumbs.db

# ================================
# 测试文件
# ================================
**/__tests__
**/*.test.*
**/*.spec.*
**/test
**/tests
jest.config.*
**/.jest

# ================================
# 文档和示例
# ================================
README.md
**/README.md
CHANGELOG.md
**/CHANGELOG.md
LICENSE
**/LICENSE
docs/
**/docs/
examples/
**/examples/

# ================================
# 开发脚本和配置
# ================================
.eslintrc*
.prettierrc*
.editorconfig
**/.eslintrc*
**/.prettierrc*
**/.editorconfig
dev-start.sh
scripts/
**/scripts/

# ================================
# 不需要的包目录（保留必要的）
# ================================

packages/docs/

# ================================
# 临时文件和日志
# ================================
*.log
**/*.log
*.tmp
**/*.tmp
.cache
**/.cache
.temp
**/.temp

# ================================
# Docker 相关
# ================================
Dockerfile*
docker-compose*
.dockerignore*

# ================================
# CI/CD 配置
# ================================
.github/
.gitlab-ci.yml
.travis.yml
.circleci/

# ================================
# 包管理器缓存
# ================================
.pnpm-store/
.yarn/
.npm/
**/.pnpm-store/
**/.yarn/
**/.npm/
