Skip to main content

setup-worktree

Set up a new git worktree for this repo by copying gitignored files (bin/) and building server assets so pnpm dev works without errors

소스 정보

저장소
temporalio/ui
최근 소스 활동
2026년 4월 21일 17:04
감지된 SKILL.md 언어
영어
스타
447
포크
202

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
setup-worktree
description
Set up a new git worktree for this repo by copying gitignored files (bin/) and building server assets so pnpm dev works without errors
## Purpose When a new git worktree is created, gitignored files (like the Temporal CLI binary in `bin/`) are missing and server assets haven't been built. Run this skill to get a new worktree ready for development. ## Steps ### 1. Find the main worktree path ```bash git worktree list ``` The first entry is the main worktree. Use it as `$MAIN`. ### 2. Copy .env from the main worktree ```bash MAIN=$(git worktree list | head -1 | awk '{print $1}') cp $MAIN/.env ./.env ``` ### 3. Build server assets Builds the frontend into `server/ui/assets/` which the Go server embeds. Required for `pnpm dev` to start. ```bash pnpm build:server ``` `pnpm dev` should now start without errors. ## Why each step is needed | Step | Why | | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | Copy `.env` | Gitignored — not present in a fresh worktree, needed for dev modes | | `pnpm build:server` | Runs `VITE_API= BUILD_PATH=server/ui/assets/local vite build` — without this, `pnpm dev` fails because the embedded server assets are missing |
GitHub에서 보기