mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-06-11 05:46:05 +00:00
8f745cdbe6
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com>
30 lines
963 B
TOML
30 lines
963 B
TOML
# Prowler worktree automation for worktrunk (wt CLI).
|
|
# Runs automatically on `wt switch --create`.
|
|
|
|
# Block 1: setup + copy gitignored env files (.envrc, ui/.env.local)
|
|
# from the primary worktree - patterns selected via .worktreeinclude.
|
|
[[pre-start]]
|
|
skills = "./skills/setup.sh --claude"
|
|
envs = "wt step copy-ignored"
|
|
|
|
# Block 2: install Python deps (uv manages the venv on `uv sync`).
|
|
[[pre-start]]
|
|
deps = "uv sync"
|
|
|
|
# Block 3: prepare pnpm via corepack.
|
|
[[pre-start]]
|
|
corepack-enable = "corepack enable"
|
|
|
|
[[pre-start]]
|
|
corepack-install = "cd ui && corepack install"
|
|
|
|
# Block 4: reminder - last visible output before `wt switch` returns.
|
|
# Hooks can't mutate the parent shell, so venv activation is manual.
|
|
[[pre-start]]
|
|
reminder = "echo '>> Reminder: activate the venv in this shell with: source .venv/bin/activate'"
|
|
|
|
# Background: pnpm install runs while you start working.
|
|
# Tail logs via `wt config state logs`.
|
|
[post-start]
|
|
ui = "cd ui && pnpm install"
|