-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.dev.ts
More file actions
49 lines (44 loc) · 1.55 KB
/
Copy pathstart.dev.ts
File metadata and controls
49 lines (44 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import path from "node:path";
import type { OrchestratorConfig } from "@effectstream/orchestrator/config";
import { DbNames, launchPglite } from "@effectstream/orchestrator/launch-pglite";
import { EvmNames, launchEvm } from "@effectstream/orchestrator/launch-evm";
const root = import.meta.dirname!;
export default {
processes: [
...launchPglite(),
...launchEvm("@farcaster-canvas/contracts-evm", {
cwd: path.join(root, "packages/contracts-evm"),
}),
{
name: "node",
description: "Farcaster Canvas sync node + API",
args: ["run", "packages/node/main.dev.ts"],
waitToExit: false,
type: "system-dependency",
env: { PGLITE: "true", MQTT_BROKER: "false" },
stopProcessAtPort: [Number(process.env.EFFECTSTREAM_API_PORT ?? 9999)],
link: `http://localhost:${process.env.EFFECTSTREAM_API_PORT ?? 9999}`,
dependsOn: [DbNames.PGLITE_WAIT, EvmNames.GENERATE_MOD],
},
{
name: "batcher",
description: "Transaction batcher",
args: ["run", "packages/batcher/batcher.dev.ts"],
waitToExit: false,
type: "system-dependency",
stopProcessAtPort: [3334],
link: "http://localhost:3334",
dependsOn: [EvmNames.GENERATE_MOD],
},
{
name: "frontend",
description: "Mini App (Vite dev server)",
args: ["run", "--filter", "@farcaster-canvas/frontend", "dev"],
waitToExit: false,
type: "system-dependency",
stopProcessAtPort: [5173],
link: "http://localhost:5173",
dependsOn: [],
},
],
} satisfies OrchestratorConfig;