36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
---
|
|
description: EventHub — локальные сборки/тесты только через WSL (Windows toolchain сломан)
|
|
alwaysApply: true
|
|
---
|
|
|
|
# EventHub: рабочее окружение агента
|
|
|
|
На этой машине **не использовать** нативный Windows для:
|
|
|
|
| Стек | Нельзя (Windows) | Нужно |
|
|
|------|------------------|--------|
|
|
| Front / FrontAdmin | `npm`, `npx`, Playwright | **WSL** `npm` |
|
|
| Back (Erlang) | Windows `erl` / `rebar3` | **WSL** + `scripts/wsl-dev-env.sh` |
|
|
|
|
## Front (EventHubFront)
|
|
|
|
```bash
|
|
wsl -e bash -lc 'cd /mnt/c/Users/alexc/IdeaProjects/eventHub/EventHubFront && npm run lint && npm run build && npm run test:e2e'
|
|
```
|
|
|
|
## FrontAdmin
|
|
|
|
```bash
|
|
wsl -e bash -lc 'cd /mnt/c/Users/alexc/IdeaProjects/eventHub/EventHubFrontAdmin && npm run lint && npm run build'
|
|
```
|
|
|
|
## Back
|
|
|
|
```bash
|
|
wsl -e bash -lc 'cd /mnt/c/Users/alexc/IdeaProjects/eventHub/EventHubBack && source scripts/wsl-dev-env.sh && rebar3 eunit'
|
|
```
|
|
|
|
Подробности: `EventHubFront/.cursor/rules/npm-wsl.mdc`, `EventHubBack/.cursor/rules/otp-rebar-wsl.mdc`.
|
|
|
|
Front IFT e2e: не голый `npm run test:e2e:ift` (получите skipped). Нужны `SMOKE_USER_*` — `run-front-ift.sh` / `eventhub-ift.env`.
|