CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
82/100
Scores the file, not the repository.Length
217 words
5 headings · 2 code blocksRepository
624
— · pushed 60 days agoLast changed
3 days ago
First indexed 3 days ago.1# CLAUDE.md23## 技术栈45uni-app(Vue 3 + Composition API)/ Vite 5+ / Pinia / uview-plus 3.4+ / UnoCSS / Scss / TypeScript / ESLint / pnpm67## 目录结构89```10├ build/ # Vite 配置与插件11├ env/ # 环境变量(.env / .env.test / .env.production)12├ scripts/ # 构建脚本(post-upgrade / verify-commit)13├ src/14│ ├ api/ # 接口(模块/index.ts + types.ts)15│ ├ components/ # 公共组件16│ ├ hooks/ # Composables17│ ├ locale/ # i18n18│ ├ pages/ # 页面19│ ├ plugins/ # 插件20│ ├ router/ # 路由(运行时解析 pages.json)21│ ├ static/ # 静态资源22│ ├ store/modules/ # Pinia Store(按模块划分)23│ └ utils/ # 工具函数24├ types/ # 全局 TS 类型25└ uno.config.ts # UnoCSS 配置26```2728## 常用命令2930```bash31pnpm install # 安装依赖(必须用 pnpm)32pnpm dev:h5 # H5 开发33pnpm dev:mp-weixin # 微信小程序开发34pnpm build:h5-prod # H5 生产构建35pnpm build:mp-weixin-prod # 微信小程序生产构建36pnpm eslint:fix # ESLint 自动修复37pnpm stylelint:fix # StyleLint 自动修复38pnpm type-check # TypeScript 类型检查39pnpm cz # 引导式 Git 提交40```4142## 架构要点4344- **条件编译**: `// #ifdef PLATFORM` / `// #endif` 处理多端差异45- **路由鉴权**: pages.json 中设置 `"needLogin": true`;TabBar 页面在 `onShow` 中调用 `usePermission()`46- **网络请求**: `src/utils/request/index.ts`,Token 在 header `token` 字段,`custom.auth = false` 跳过鉴权,401 自动刷新 Token47- **状态持久化**: pinia-plugin-persistedstate + uni.getStorageSync/setStorageSync48- **环境变量**: `VITE_API_BASE_URL` / `VITE_APP_PROXY` / `VITE_API_PREFIX` / `VITE_DROP_CONSOLE`49- **Vite 插件**: 统一注册在 `build/plugins/index.ts`,CDN 替换和体积分析默认关闭
Also in oyjt/uniapp-vue3-template
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| oyjt/uniapp-vue3-template.cursor/rules/git.mdc · 624 | Cursor rules | git | 33/100 | 3 days ago | |
| oyjt/uniapp-vue3-template.cursor/rules/project.mdc · 624 | Cursor rules | lint-format | 54/100 | 3 days ago | |
| oyjt/uniapp-vue3-template.cursor/rules/ts.mdc · 624 | Cursor rules | types | 30/100 | 3 days ago | |
| oyjt/uniapp-vue3-template.cursor/rules/vue.mdc · 624 | Cursor rules | api | 44/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today | |
| lollipopkit/flutter_server_boxCLAUDE.md · 8.3k | CLAUDE.md | buildteststylearch+2 | 98/100 | 3 days ago |
