Skip to content

Commit 374aa62

Browse files
committed
Replace mprocs with phrocs
1 parent dd60249 commit 374aa62

6 files changed

Lines changed: 12 additions & 29 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ out/
88
.vite/
99
.turbo/
1010
storybook-static
11+
bin/
1112

1213
# Environment
1314
.env

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
## Commands
1515

1616
- `pnpm install` - Install all dependencies
17-
- `pnpm dev` - Run both agent (watch) and code app via mprocs
17+
- `pnpm dev` - Run both agent (watch) and code app via phrocs
1818
- `pnpm dev:agent` - Run agent package in watch mode only
1919
- `pnpm dev:code` - Run code desktop app only
2020
- `pnpm build` - Build all packages (turbo)

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ pnpm install
2727

2828
# Copy environment config
2929
cp .env.example .env
30+
31+
# Install phrocs
32+
curl -L https://github.com/PostHog/posthog/releases/download/phrocs-latest/phrocs-darwin-arm64 -o bin/phrocs && chmod +x bin/phrocs
3033
```
3134

3235
### Running in Development

mprocs.yaml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
11
procs:
22
code:
3-
cmd: ["pnpm", "--filter", "code", "run", "start"]
4-
cwd: .
5-
color: blue
3+
shell: 'pnpm --filter code run start'
64
depends_on:
75
- agent
86
- git
97

108
agent:
11-
cmd: ["pnpm", "--filter", "agent", "run", "dev"]
12-
cwd: .
13-
color: magenta
14-
9+
shell: 'pnpm --filter agent run dev'
10+
1511
git:
16-
cmd: ["pnpm", "--filter", "@posthog/git", "run", "dev"]
17-
cwd: .
18-
color: yellow
12+
shell: 'pnpm --filter @posthog/git run dev'
1913

2014
storybook:
21-
cmd: ["pnpm", "--filter", "code", "run", "storybook"]
22-
cwd: .
23-
color: cyan
15+
shell: 'pnpm --filter code run storybook'
2416
autostart: false
2517

2618
mobile-ios:
27-
cmd: ["pnpm", "--filter", "@posthog/mobile", "run", "ios"]
28-
cwd: .
29-
color: green
19+
shell: 'pnpm --filter @posthog/mobile run ios'
3020
autostart: false

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"setup": "bash apps/code/bin/setup",
1212
"prepare": "husky",
13-
"dev": "pnpm build:deps && mprocs",
13+
"dev": "pnpm build:deps && bin/phrocs --config mprocs.yaml",
1414
"dev:agent": "pnpm --filter agent dev",
1515
"dev:git": "pnpm --filter @posthog/git dev",
1616
"dev:code": "pnpm --filter code start",
@@ -45,7 +45,6 @@
4545
"husky": "^9.1.7",
4646
"knip": "^5.66.3",
4747
"lint-staged": "^15.5.2",
48-
"mprocs": "^0.7.1",
4948
"turbo": "^2.6.2"
5049
},
5150
"lint-staged": {

pnpm-lock.yaml

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)