mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
21 lines
1.0 KiB
TOML
21 lines
1.0 KiB
TOML
[list]
|
|
url = "http://127.0.0.1:{{ (repo ~ '-' ~ branch) | hash_port }}"
|
|
|
|
[[pre-start]]
|
|
env = "wt step copy-ignored || true; bun run setup:worktree -- --quiet --force --prefer-fallback"
|
|
|
|
[[pre-start]]
|
|
deps = "test -x node_modules/.bin/vite || bun install"
|
|
|
|
[post-start]
|
|
dev = "bun scripts/dev-worktree.ts --detach --seed --port {{ (repo ~ '-' ~ branch) | hash_port }}"
|
|
|
|
[pre-remove]
|
|
dev = "if test -f .codex/runtime/dev-worktree.pid; then pid=$(cat .codex/runtime/dev-worktree.pid); kill -TERM -$pid 2>/dev/null || kill $pid 2>/dev/null || true; rm -f .codex/runtime/dev-worktree.pid; fi"
|
|
|
|
[aliases]
|
|
dev = "wt --yes hook pre-start && bun scripts/dev-worktree.ts --detach --seed --port {{ (repo ~ '-' ~ branch) | hash_port }}"
|
|
setup = "wt --yes hook pre-start"
|
|
stop = "if test -f .codex/runtime/dev-worktree.pid; then pid=$(cat .codex/runtime/dev-worktree.pid); kill -TERM -$pid 2>/dev/null || kill $pid 2>/dev/null || true; rm -f .codex/runtime/dev-worktree.pid; fi"
|
|
url = "echo http://127.0.0.1:{{ (repo ~ '-' ~ branch) | hash_port }}"
|