From 9e4f301ab95e994d353fc0b662e26f9205fbe902 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 18 Mar 2026 21:51:35 +0800 Subject: [PATCH] chore/ update .gitginore to exclude root node modules and app-expo --- .gitignore | 90 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 53 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 65ce346..f923fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1,8 @@ -# ========== 临时 ========== +# temp +node_modules/ app-expo/ -api-bak/ -# ========== 通用 ========== -.DS_Store -Thumbs.db -*.tmp -*.log -*.swp -*.swo -*~ -.worktrees/ - -# ========== 环境变量 ========== -.env -.env.local -!.env.production - -# ========== IDE ========== -.idea/ -.vscode/ -*.iml - -# ========== Python ========== +# Python __pycache__/ *.py[cod] *$py.class @@ -32,31 +12,67 @@ env/ venv/ ENV/ .venv -.pytest_cache/ -build/ -dist/ -*.egg-info/ -# ========== 数据库 ========== +# 环境变量 +.env +.env.local +# 注意:.env.production 应该被提交(私密仓库) +# 明确排除 .env.production,确保它可以被提交 +!.env.production + +# 证书与私钥(勿提交,README 可提交) +api/certs/*.pem +api/certs/*.p12 + +# 数据库文件 *.db *.sqlite *.sqlite3 -# ========== 提交辅助 ========== +# IDE +.idea/ +.vscode/ +*.iml + +# Android Studio +# 若启用 #GRADLE_LOCAL_JAVA_HOME +/app-android/gradle/config.properties +# AGP/Kotlin 本地缓存 +/app-android/.kotlin/ + +# 临时文件 +*.tmp +*.log +*.swp +*.swo +*~ + +# 提交消息临时文件 commit_msg_*.txt commit_plan.txt commit_messages.txt -# ========== API 项目特定 ========== -api/certs/*.pem -api/certs/*.p12 +# 操作系统 +.DS_Store +Thumbs.db + +# 构建文件 +build/ +dist/ +*.egg-info/ +app-expo/coverage/ + +# 本地 ASR 模型缓存(Whisper 每次启动从该目录加载) api/models/certs/ api/models/whisper/ + +# 脚本输出(预览 JSON/Markdown) api/scripts/output/ -# ========== Android ========== -app-android/gradle/config.properties -app-android/.kotlin/ - -# ========== 其他 ========== certs/ + +# Git worktrees +.worktrees/ + +# Node +node_modules/