CI / changes (push) Successful in 10s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 27s
CI / web (push) Successful in 38s
CI / go (push) Successful in 2m36s
CI / bird2 (push) Successful in 15s
CI / release (push) Failing after 3m7s
Refactored the project structure to support a monorepo setup, moving the web application to `apps/web/` and updating related configurations. Adjusted pre-commit hooks to use `pnpm` for linting and formatting. Updated CI workflows to reflect the new directory structure and dependencies. Removed legacy files and configurations from the previous `web/` directory, streamlining the project for better maintainability and clarity.
49 lines
1.9 KiB
Markdown
49 lines
1.9 KiB
Markdown
# EvoBGP — руководство для ИИ-агентов
|
||
|
||
Краткая карта репозитория. Полная архитектура: [docs/architecture.md](docs/architecture.md). HTTP: [docs/openapi.yaml](docs/openapi.yaml).
|
||
|
||
## Monorepo (фронтенд)
|
||
|
||
```
|
||
EvoBGP/
|
||
├── cmd/, internal/ # Go API /v1
|
||
├── apps/web/ # SvelteKit SPA (@evobgp/web)
|
||
├── packages/ui/ # @evobgp/ui — shadcn-svelte primitives
|
||
├── packages/shared/ # @evobgp/shared — types, Zod contracts
|
||
└── pnpm-workspace.yaml
|
||
```
|
||
|
||
| Слой | Импорт |
|
||
|------|--------|
|
||
| Примитивы | `@evobgp/ui/components/*` |
|
||
| CSS | `@evobgp/ui/styles/globals.css` |
|
||
| Типы/контракты | `@evobgp/shared/types/*`, `@evobgp/shared/contracts/*` |
|
||
| Паттерны UI | `$lib/components/*`, `$lib/components/patterns/*` |
|
||
| Queries | `$lib/queries/*` (`@tanstack/svelte-query`) |
|
||
|
||
## С чего начать
|
||
|
||
1. **Правила:** [engineering.mdc](.cursor/rules/engineering.mdc), [web-shadcn.mdc](.cursor/rules/web-shadcn.mdc), [frontend-monorepo.mdc](.cursor/rules/frontend-monorepo.mdc)
|
||
2. **Фронт:** [apps/web/README.md](apps/web/README.md)
|
||
3. **Go:** `internal/httpapi/`, `internal/store/`, `internal/pipeline/`
|
||
|
||
## Команды
|
||
|
||
```powershell
|
||
pnpm install
|
||
pnpm --filter @evobgp/web dev
|
||
pnpm --filter @evobgp/web build
|
||
pnpm --filter @evobgp/web check
|
||
pnpm --filter @evobgp/web lint
|
||
```
|
||
|
||
После правок `apps/web/**` — **обязательно** `check` и `lint` (WEB-19).
|
||
|
||
## UX-эталон
|
||
|
||
vps-tracker: `PageShell`, `SectionCards`, `QueryState`, `DataTableCard`, sidebar-07 layout. ReUI не используется — Data Table на shadcn-svelte.
|
||
|
||
## Коммиты
|
||
|
||
При запросе коммита: [conventional-commits.mdc](.cursor/rules/conventional-commits.mdc), скилл `.cursor/skills/commit-message/SKILL.md`.
|