Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 57 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,51 +1,82 @@
# build output
# ============================================================
# 构建输出
# ============================================================
dist/
build/
output/

# generated types
# ============================================================
# 框架生成文件
# ============================================================
# Astro
.astro/

# dependencies
# ============================================================
# 依赖
# ============================================================
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# ============================================================
# 缓存
# ============================================================
.cache/
.turbo/
*.tsbuildinfo
.eslintcache

# environment variables
# ============================================================
# 环境变量
# ============================================================
.env
.env.production
.env.local
.env.*.local

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/

# ============================================================
# 以下配置用于减少 Cline AI 助手的上下文开销
# 日志
# ============================================================
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
*.log

# 测试覆盖率报告
# ============================================================
# 测试
# ============================================================
coverage/
.nyc_output/

# Vitest UI 临时文件
.vitest/

# TypeScript 构建缓存
*.tsbuildinfo
# ============================================================
# 编辑器 & IDE
# ============================================================
# VS Code (保留推荐配置)
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/settings.json

# Cline 本地配置 (个人偏好)
.clinerules.local
# JetBrains
.idea/

# 编辑器临时文件
# Vim
*.swp
*.swo
*~

# 锁文件 (体积大,通常不需要 AI 阅读)
# 注意: pnpm-lock.yaml 应该提交到 git,但 Cline 通常不需要读取
# ============================================================
# 操作系统
# ============================================================
# macOS
.DS_Store

# Windows
Thumbs.db
Desktop.ini

# ============================================================
# Cline
# ============================================================
# Cline 本地配置 (个人偏好)
.clinerules.local
6 changes: 2 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm format:staged
# 格式化暂存文件
pnpm format:staged
56 changes: 43 additions & 13 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,53 @@
# deps
node_modules

# build outputs
# ============================================================
# 构建输出
# ============================================================
dist
.astro
.vercel
.netlify
output
build
output

# ============================================================
# 框架生成文件
# ============================================================
.astro

# caches
# ============================================================
# 依赖 & 锁文件
# ============================================================
node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock

# ============================================================
# 缓存
# ============================================================
.cache
.turbo
.tmp
temp
coverage

# lockfiles
pnpm-lock.yaml
# ============================================================
# 静态资源 (无需格式化)
# ============================================================
public
docs/assets

# ============================================================
# 自动生成的文件
# ============================================================
*.d.ts
src/env.d.ts
*.min.js
*.min.css

# ============================================================
# 版本控制
# ============================================================
.git

# misc
.DS_Store
# ============================================================
# 操作系统
# ============================================================
.DS_Store
Thumbs.db
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
"test:all": "vitest run"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,astro,json,md,yml,yaml,css,scss}": [
"*.{astro,tsx,ts,jsx,js}": [
"prettier --write"
],
"*.{json,md,yml,yaml,css,scss,html}": [
"prettier --write"
]
},
Expand Down