Skip to content

Commit 2943df2

Browse files
centdixclaude
andcommitted
feat: uncomment services and add npm install in init templates
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3cc608d commit 2943df2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

bin/src/init.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@ function wmdevTemplate(name: string): string {
4242
return `# Project display name in the dashboard
4343
name: ${name}
4444
45-
# --- Service health monitoring (uncomment to enable) ---
4645
# Each service defines a port env var that wmdev injects into .env.local
4746
# when creating a worktree. Ports are auto-assigned: base + (slot × step).
4847
# Use \`source .env.local\` in your .workmux.yaml pane commands to pick them up.
49-
# services:
50-
# - name: app
51-
# portEnv: PORT
52-
# portStart: 3000 # Port for the main branch (slot 0)
53-
# portStep: 10 # Increment per worktree (3010, 3020, ...)
48+
services:
49+
- name: app
50+
portEnv: PORT
51+
portStart: 3000 # Port for the main branch (slot 0)
52+
portStep: 10 # Increment per worktree (3010, 3020, ...)
5453
5554
# Agent profiles determine how AI agents run in worktrees
5655
profiles:
@@ -99,6 +98,7 @@ panes:
9998
10099
# Dev server — waits for .env.local (written by wmdev) then starts
101100
- command: >-
101+
npm install &&
102102
until [ -f .env.local ]; do sleep 0.2; done;
103103
source .env.local;
104104
PORT=$PORT npm run dev

0 commit comments

Comments
 (0)