Skip to content
Back to skills

Nx Monorepo

ASecurity

Управление Nx монорепо. Используй при: - Запуске задач (build, test, lint, dev) - Настройке кэширования и CI - Работе с affected командами - Добавлении проектов/библиотек - Настройке зависимостей между проектами - Troubleshooting Nx

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 20, 2026
developmenttypescriptgobashgit

Works with

  • mcp

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned October 20, 2026

npx -y skills add kamiletar/letar --skill nx-monorepo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nx Monorepo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nx Monorepo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kamiletar-nx-monorepo/badge)](https://www.skillsdirectory.com/skills/kamiletar-nx-monorepo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nx-monorepo
description: |
  Управление Nx монорепо. Используй при:
  - Запуске задач (build, test, lint, dev)
  - Настройке кэширования и CI
  - Работе с affected командами
  - Добавлении проектов/библиотек
  - Настройке зависимостей между проектами
  - Troubleshooting Nx
---

# Nx Monorepo

Руководство по управлению Nx монорепо.

## Quick Reference

```bash
# Основные команды
nx dev <project>           # Запуск dev сервера
nx build <project>         # Сборка проекта
nx lint <project>          # Линтинг (oxlint + ESLint)
nx test <project>          # Тесты
nx typecheck:tsgo <project> # Проверка типов (9-38x быстрее!)

# Форматирование — ТОЛЬКО так, голая `nx format`/`nx format:write` жёстко зашита на Prettier
nx run-many -t format --projects=<project>

# Множественные задачи
nx run-many -t build       # Собрать все проекты
nx affected -t test        # Тестировать только изменённые

# Утилиты
nx graph                   # Визуализация зависимостей
nx reset                   # Очистить кэш и daemon
nx show project <name>     # Информация о проекте
```

⛔ **`nx sync` здесь не работает** — генератор `@nx/js:typescript-sync` отключён в `nx.json`
(`sync.disabledTaskSyncGenerators`), в CI и git-хуках не вызывается. `references` в `tsconfig.json`
правятся руками, и чаще всего не требуют правки вовсе:
[environment.md](/.claude/docs/environment.md#разработка-shared-библиотек).

---

## Версия Nx

- **Nx:** 23.x (точная версия — `package.json`)
- **Пакетный менеджер:** Bun

---

## Проекты в Workspace

Список проектов и портов — MCP `nx_workspace` и `apps/<app>/.env`; ручной таблицы портов нет и заводить её не нужно ([environment](/.claude/docs/environment.md)).

## Ключевые концепции

| Концепция          | Описание                           |
| ------------------ | ---------------------------------- |
| **Target**         | Задача проекта (build, test, lint) |
| **Executor**       | Исполнитель задачи                 |
| **dependsOn**      | Зависимости между задачами         |
| **affected**       | Только изменённые проекты          |
| **inputs/outputs** | Контроль кэширования               |
| **tags**           | Метки для module boundaries        |

---

## Перед коммитом

```bash
nx run-many -t format --projects=<project>  # Форматирование (dprint)
nx lint <project>                           # Линтинг (oxlint + ESLint)
nx typecheck:tsgo <project>                 # Проверка типов
```

---

## См. также

- [reference/commands.md](reference/commands.md) — Все команды
- [reference/configuration.md](reference/configuration.md) — nx.json, project.json
- [reference/caching.md](reference/caching.md) — Кэширование
- [reference/affected.md](reference/affected.md) — Affected команды
- [reference/plugins.md](reference/plugins.md) — Плагины
- [reference/project-structure.md](reference/project-structure.md) — Теги, boundaries
- [reference/troubleshooting.md](reference/troubleshooting.md) — Проблемы

Files in this skill

  • SKILL.md3.7 KB
  • reference/affected.md5.5 KB
  • reference/caching.md6.4 KB
  • reference/commands.md5.5 KB
  • reference/configuration.md6.5 KB
  • reference/plugins.md6.9 KB
  • reference/project-structure.md7.8 KB
  • reference/troubleshooting.md7.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.