瀏覽代碼

docs: add AI coding rules with mandatory build/typecheck steps

unknown 21 小時之前
父節點
當前提交
b5ca5292bd
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      .gemini_rules.md

+ 19 - 0
.gemini_rules.md

@@ -0,0 +1,19 @@
+# AI Coding Rules for Radionica3D
+
+## Mandatory Deployment Workflow
+Before any `git push` or claiming a task is "ready", the AI MUST:
+1. **Sync Locales**: Run `python scripts/manage_locales.py split`.
+2. **Type Check**: Run `cmd /c "node_modules\.bin\vue-tsc --noEmit"` (on Windows) or `./node_modules/.bin/vue-tsc --noEmit` (on Linux) to ensure no TypeScript errors were introduced.
+3. **Production Build**: Run `npm run build` or `vite build` to ensure the project compiles correctly and there are no circular dependencies or missing imports in the production bundle.
+4. **Local Verification**: If possible, verify the UI changes via screenshots or browser tools.
+
+## Localization Rules
+- **NEVER** edit `en.admin.json`, `ru.json`, etc., directly.
+- **NEVER** edit `translations.admin.json` or `translations.user.json` directly.
+- **ALWAYS** edit fragments in `src/locales/master_admin/` or `src/locales/master_user/`.
+- After editing fragments, run the `split` command to propagate changes.
+
+## UI/UX Standards
+- Maintain premium aesthetics (glassmorphism, smooth transitions).
+- Use `lucide-vue-next` for icons.
+- Use `vue-sonner` for notifications.