-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sneg240/SNEGDEV-20
SNEGDEV-20 сделал документацию по монорепе
- Loading branch information
Showing
2 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Описание устройства монорепозитория | ||
|
||
1. Монорепозиторий управляется связкой turborepo + pnpm | ||
2. pnpm обеспечивает управление зависимостями, их установку и контроль версий | ||
3. turborepo обеспечивает кеширование и оркестрирование выполнения скриптов, а так же кодогенерацию | ||
|
||
## Полезные команды | ||
|
||
1. Установить зависимости - `pnpm i` | ||
2. Запустить сторибук в одном из пакетов (например - "ui") - `turbo run dev --filter=@sneg240/ui` (см. [turbo.json](../turbo.json) и [@sneg240/ui/package.json](../packages/ui/package.json)) | ||
3. Запустить автоматические проверки во всем проекте - `turbo run check` (см. [turbo.json](../turbo.json)) | ||
4. Сгенерировать новый пакет - `pnpm run generate:package` (см. [package.json](../package.json)) | ||
|
||
## Полезные ссылки | ||
|
||
- [Turborepo CLI](https://turbo.build/repo/docs/reference/command-line-reference) | ||
- [Turborepo CodeGen](https://turbo.build/repo/docs/core-concepts/monorepos/code-generation) | ||
- [Turborepo Filter](https://turbo.build/repo/docs/core-concepts/monorepos/filtering) |