Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d8a25cd67 | |||
| a56b3d044a |
@@ -24,12 +24,12 @@ src/
|
||||
├── screens/ # Контент конкретных страниц
|
||||
├── widgets/ # Составные блоки интерфейса, не привязанные к домену
|
||||
├── business/ # Бизнес-домены (auth, catalog, orders)
|
||||
├── infrastructure/ # Техсервисы (theme, i18n, API-адаптеры)
|
||||
├── infra/ # Техсервисы (theme, i18n, API-адаптеры)
|
||||
├── ui/ # UI-кит без бизнес-логики
|
||||
└── shared/ # Общие ресурсы (утилиты, типы, стили, спрайты)
|
||||
```
|
||||
|
||||
Зависимости идут строго сверху вниз: `app` → `[layouts | screens]` → `widgets` → `business` → `infrastructure` → `ui` → `shared`.
|
||||
Зависимости идут строго сверху вниз: `app` → `[layouts | screens]` → `widgets` → `business` → `infra` → `ui` → `shared`.
|
||||
|
||||
Подробнее: [Архитектура SLM](./ai/nextjs-style-guide/basics/architecture/index.md).
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"!dist",
|
||||
"!build",
|
||||
"!.templates",
|
||||
"!src/infrastructure/**/generated"
|
||||
"!src/infra/**/generated"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"lint": "biome check",
|
||||
"format": "biome format --write",
|
||||
"sprite": "svg-sprites",
|
||||
"codegen:pet-store-api": "npx @gromlab/api-codegen@latest -i http://localhost:8080/api/v3/openapi.json -o src/infrastructure/pet-store-api/generated -n pet-store-api.generated",
|
||||
"codegen:pet-store-api": "npx @gromlab/api-codegen@latest -i http://localhost:8080/api/v3/openapi.json -o src/infra/pet-store-api/generated -n pet-store-api.generated",
|
||||
"predev": "svg-sprites",
|
||||
"prebuild": "svg-sprites"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user