-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.dev.ts
More file actions
58 lines (53 loc) · 1.66 KB
/
Copy pathstart.dev.ts
File metadata and controls
58 lines (53 loc) · 1.66 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
50
51
52
53
54
55
56
57
58
import path from "node:path";
import type { OrchestratorConfig } from "@effectstream/orchestrator/config";
import { launchPglite, DbNames } from "@effectstream/orchestrator/launch-pglite";
import { launchEvm, EvmNames } from "@effectstream/orchestrator/launch-evm";
const root = import.meta.dirname!;
export default {
processes: [
...launchPglite(),
...launchEvm("@payment-app/contracts-evm", {
cwd: path.join(root, "packages/contracts-evm"),
}),
{
name: "sync",
description: "Payment sync node",
args: ["run", "packages/node/main.dev.ts"],
waitToExit: false,
type: "system-dependency",
env: { PGLITE: "true" },
dependsOn: [DbNames.PGLITE_WAIT, EvmNames.GENERATE_MOD],
},
{
name: "batcher",
description: "Transaction batcher",
args: ["run", "packages/batcher/batcher.dev.ts"],
waitToExit: false,
type: "system-dependency",
link: "http://localhost:3334",
stopProcessAtPort: [3334],
dependsOn: [EvmNames.GENERATE_MOD],
},
{
name: "frontend-build",
description: "Build frontend",
cwd: path.join(root, "packages/frontend"),
args: ["run", "build"],
waitToExit: true,
type: "system-dependency",
critical: true,
dependsOn: [EvmNames.GENERATE_MOD],
},
{
name: "frontend-server",
description: "Serve frontend",
cwd: path.join(root, "packages/frontend"),
args: ["run", "serve"],
waitToExit: false,
type: "system-dependency",
link: "http://localhost:10599",
stopProcessAtPort: [10599],
dependsOn: ["frontend-build"],
},
],
} satisfies OrchestratorConfig;