-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-pm.config.js
58 lines (56 loc) · 1.51 KB
/
dev-pm.config.js
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
// @ts-check
/**
* @type {import('@comet/dev-process-manager').Config}
**/
const config = {
scripts: [
{
name: "docker",
script: "docker compose up",
group: "api",
},
{
name: "admin",
script: "npm run --prefix admin start",
group: "admin",
waitOn: ["tcp:$API_PORT"],
},
{
name: "admin-codegen",
script: "npm --prefix admin run gql:watch",
group: "admin",
waitOn: ["tcp:$ADMIN_PORT"],
},
{
name: "admin-block-codegen",
script: "npm --prefix admin run generate-block-types:watch",
group: "admin",
waitOn: ["tcp:$ADMIN_PORT"],
},
{
name: "api",
script: "npm --prefix api run start:dev",
group: "api",
waitOn: ["tcp:$POSTGRESQL_PORT", "tcp:$IMGPROXY_PORT"],
},
{
name: "site",
script: "npm --prefix site run dev",
group: "site",
waitOn: ["tcp:$API_PORT"],
},
{
name: "site-codegen",
script: "npm --prefix site run gql:watch",
group: "site",
waitOn: ["tcp:$SITE_PORT"],
},
{
name: "site-block-codegen",
script: "npm --prefix site run generate-block-types:watch",
group: "site",
waitOn: ["tcp:$SITE_PORT"],
},
],
};
module.exports = config;