c784c205f4
- 从git追踪中移除.env.production(包含真实API密钥和密码) - 在.gitignore中明确添加.env.production规则 - 清理.gitignore中的重复规则(.bak, .backup, .tmp, .temp, .trae/) - 提升安全性,防止敏感配置泄露
359 lines
5.2 KiB
Plaintext
359 lines
5.2 KiB
Plaintext
# Dependencies
|
|
node_modules/
|
|
.pnpm-store/
|
|
.pnp/
|
|
.pnp.*
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/versions
|
|
|
|
# Next.js
|
|
.next/
|
|
.next/cache/
|
|
.next/static/
|
|
out/
|
|
.swc/
|
|
|
|
# Next.js specific
|
|
.next/types/
|
|
.next/server/
|
|
.next/build-manifest.json
|
|
.next/react-loadable-manifest.json
|
|
|
|
# Production
|
|
build/
|
|
dist/
|
|
.cache/
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
/lib/
|
|
/lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
MANIFEST
|
|
.pytest_cache/
|
|
.mypy_cache/
|
|
.coverage
|
|
htmlcov/
|
|
.tox/
|
|
.hypothesis/
|
|
.coverage.*
|
|
*.cover
|
|
coverage.xml
|
|
.dmypy.json
|
|
dmypy.json
|
|
.pyre/
|
|
.pytype/
|
|
cython_debug/
|
|
|
|
# Python Virtual Environments
|
|
venv/
|
|
env/
|
|
ENV/
|
|
env.bak/
|
|
venv.bak/
|
|
.venv/
|
|
virtualenv/
|
|
virtualenvs/
|
|
|
|
# Python E2E Tests
|
|
e2e-tests/.pytest_cache/
|
|
e2e-tests/__pycache__/
|
|
e2e-tests/.venv/
|
|
e2e-tests/venv/
|
|
e2e-tests/*.egg-info/
|
|
|
|
# Playwright
|
|
test-results/
|
|
playwright-report/
|
|
playwright/.cache/
|
|
*.traces/
|
|
playwright-traces/
|
|
|
|
# E2E test results and reports (comprehensive)
|
|
e2e/test-results/
|
|
e2e/test-results/**/
|
|
e2e/playwright-report/
|
|
e2e/playwright-report/**/
|
|
e2e/playwright/.cache/
|
|
e2e/allure-results/
|
|
e2e/allure-results/**/
|
|
e2e/allure-report/
|
|
e2e/.last-run.json
|
|
e2e/junit.xml
|
|
|
|
# Test result files (screenshots, videos, traces)
|
|
e2e/test-results/**/*.png
|
|
e2e/test-results/**/*.jpg
|
|
e2e/test-results/**/*.jpeg
|
|
e2e/test-results/**/*.webp
|
|
e2e/test-results/**/*.avif
|
|
e2e/test-results/**/*.gif
|
|
e2e/test-results/**/*.webm
|
|
e2e/test-results/**/*.mp4
|
|
e2e/test-results/**/*.zip
|
|
e2e/test-results/**/*.json
|
|
e2e/test-results/**/*.xml
|
|
e2e/test-results/**/*.html
|
|
|
|
# Playwright report media files
|
|
e2e/playwright-report/**/*.png
|
|
e2e/playwright-report/**/*.jpg
|
|
e2e/playwright-report/**/*.webm
|
|
e2e/playwright-report/**/*.mp4
|
|
e2e/playwright-report/**/*.zip
|
|
e2e/playwright-report/data/
|
|
e2e/playwright-report/index.html
|
|
|
|
# Allure test results and reports
|
|
allure-results/
|
|
allure-report/
|
|
e2e/allure-*/
|
|
test-framework/allure-*/
|
|
e2e-tests/allure-*/
|
|
e2e/allure-results/**/*.png
|
|
e2e/allure-results/**/*.jpg
|
|
e2e/allure-results/**/*.webp
|
|
e2e/allure-results/**/*.webm
|
|
e2e/allure-results/**/*.json
|
|
e2e/allure-results/**/*.xml
|
|
test-framework/allure-results/**/*.png
|
|
test-framework/allure-results/**/*.jpg
|
|
|
|
# Test Framework Reports
|
|
test-framework/reports/
|
|
e2e/test-report.md
|
|
e2e-tests/results/
|
|
e2e-tests/reports/
|
|
|
|
# Testing
|
|
coverage/
|
|
.nyc_output/
|
|
*.lcov
|
|
|
|
# TypeScript
|
|
*.tsbuildinfo
|
|
next-env.d.ts
|
|
*.d.ts.map
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
.env.production
|
|
.env.*.local
|
|
*.env
|
|
|
|
# Database
|
|
*.db
|
|
*.db-journal
|
|
data.db
|
|
|
|
# Uploads
|
|
uploads/
|
|
|
|
# Vercel
|
|
.vercel/
|
|
|
|
# Logs
|
|
logs/
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
pnpm-debug.log*
|
|
lerna-debug.log*
|
|
|
|
# Deployment logs
|
|
deploy_*.log
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
*.sublime-workspace
|
|
*.sublime-project
|
|
*.iml
|
|
.project
|
|
.classpath
|
|
.settings/
|
|
*.code-workspace
|
|
|
|
# OS
|
|
.DS_Store
|
|
.DS_Store?
|
|
._*
|
|
.Spotlight-V100
|
|
.Trashes
|
|
Thumbs.db
|
|
ehthumbs.db
|
|
Desktop.ini
|
|
$RECYCLE.BIN/
|
|
*.cab
|
|
*.msi
|
|
*.msix
|
|
*.msm
|
|
*.msp
|
|
*.lnk
|
|
|
|
# Debug
|
|
*.pem
|
|
*.key
|
|
*.cert
|
|
*.crt
|
|
|
|
# Auth files (contains sensitive session data)
|
|
.auth/
|
|
|
|
# Backup files
|
|
*.backup
|
|
*.bak
|
|
|
|
# Runtime data
|
|
pids/
|
|
*.pid
|
|
*.seed
|
|
*.pid.lock
|
|
|
|
# Optional npm cache
|
|
.eslintcache
|
|
.node_repl_history
|
|
|
|
# Build outputs
|
|
*.tgz
|
|
*.local
|
|
|
|
# Turbopack
|
|
.turbo/
|
|
|
|
# Vite
|
|
vite.config.ts.timestamp-*
|
|
dist-ssr/
|
|
|
|
# Trae
|
|
.trae/
|
|
|
|
# Tailwind CSS
|
|
*.css.map
|
|
|
|
# Framer Motion
|
|
*.framer-motion.json
|
|
|
|
# Three.js
|
|
*.three.json
|
|
|
|
# Image optimization - only ignore in specific directories
|
|
# Keep public images and visual regression snapshots
|
|
# test-results/**/*.avif
|
|
# test-results/**/*.webp
|
|
# test-results/**/*.png
|
|
# test-results/**/*.jpg
|
|
|
|
# Temporary files
|
|
*.tmp
|
|
*.temp
|
|
*.swp
|
|
*~
|
|
.npm
|
|
|
|
# Test files
|
|
test-email.js
|
|
test-screenshot.png
|
|
hero-check.png
|
|
playwright-test-not-portal.js
|
|
|
|
# Test screenshots and images - ignore all test output
|
|
# Allure attachments
|
|
e2e/allure-results/**/*.png
|
|
e2e/allure-results/**/*.jpg
|
|
e2e/allure-results/**/*.webp
|
|
test-framework/allure-results/**/*.png
|
|
test-framework/allure-results/**/*.jpg
|
|
|
|
# Playwright test results (all media files)
|
|
test-results/**/*.png
|
|
test-results/**/*.jpg
|
|
test-results/**/*.jpeg
|
|
test-results/**/*.webp
|
|
test-results/**/*.avif
|
|
test-results/**/*.gif
|
|
test-results/**/*.webm
|
|
test-results/**/*.mp4
|
|
test-results/**/*.zip
|
|
|
|
# Build output images
|
|
dist/**/*.png
|
|
dist/**/*.jpg
|
|
dist/**/*.jpeg
|
|
dist/**/*.webp
|
|
dist/**/*.avif
|
|
dist/**/*.gif
|
|
|
|
# IMPORTANT: Visual regression snapshots should be committed to version control
|
|
# These are in: e2e/src/tests/visual/**/*-snapshots/
|
|
# Git will track them because they are not in test-results/ or allure-results/
|
|
|
|
# Test analysis scripts output
|
|
e2e/analyze-results.js
|
|
test-framework/analyze-*.py
|
|
test-framework/debug-*.py
|
|
test-framework/verify-*.ts
|
|
|
|
# Test baseline images (keep visual regression snapshots)
|
|
# Note: Visual regression snapshots in e2e/src/tests/visual/*-snapshots/ should be committed
|
|
|
|
# Performance audit results
|
|
lighthouse-reports/
|
|
performance-baseline.json
|
|
|
|
# Test data exports
|
|
test-data-*.json
|
|
test-results-*.json
|
|
|
|
# Additional E2E test artifacts
|
|
e2e/blob-report/
|
|
e2e/report/
|
|
e2e/.auth/
|
|
e2e/state/
|
|
e2e/storage-state.json
|
|
|
|
# Test execution artifacts
|
|
*.trace
|
|
*.trace.zip
|
|
trace.zip
|
|
network-logs/
|
|
|
|
# Deprecated test frameworks
|
|
e2e-tests/
|
|
test-framework/
|
|
|
|
# Reports
|
|
reports/e2e/
|
|
reports/performance/
|
|
reports/coverage/
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|