-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.cjs
41 lines (40 loc) · 1.05 KB
/
ecosystem.config.cjs
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
require("dotenv-flow/config");
module.exports = {
apps: [
{
name: "jeasx:start:server",
script: "server.js",
watch: ["public"],
autorestart: true,
},
{
name: "jeasx:build:routes",
script: "esbuild.config.js",
args: "routes",
watch: ["js", "jsx", "ts", "tsx", "json"].map((ext) => `src/**/*.${ext}`),
ignore_watch: process.env.JEASX_BUILD_ROUTES_IGNORE_WATCH
? process.env.JEASX_BUILD_ROUTES_IGNORE_WATCH.split(",")
: ["src/browser"],
autorestart: false,
},
{
name: "jeasx:build:js",
script: "esbuild.config.js",
args: "js",
watch: (process.env.JEASX_BUILD_JS_WATCH
? process.env.JEASX_BUILD_JS_WATCH.split(",")
: ["src/browser"]
).flatMap((path) =>
["js", "jsx", "ts", "tsx", "json"].map((ext) => `${path}/**/*.${ext}`)
),
autorestart: false,
},
{
name: "jeasx:build:css",
script: "esbuild.config.js",
args: "css",
watch: ["src/**/*.css"],
autorestart: false,
},
],
};