-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwork-dirs.ts
More file actions
executable file
·73 lines (69 loc) · 1.44 KB
/
work-dirs.ts
File metadata and controls
executable file
·73 lines (69 loc) · 1.44 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import "zx/globals";
// eslint-disable-next-line unicorn/import-style
import * as path from "node:path";
$.verbose = true;
const root = path.resolve(import.meta.dirname, "../../../");
const apps = path.resolve(root, "apps");
const etc = path.resolve(root, "etc");
const app = path.resolve(apps, "app");
const counter = path.resolve(apps, "counter");
const recorder = path.resolve(apps, "recorder");
const workflowRuntime = path.resolve(etc, "workflow-runtime");
const scripts = path.resolve(etc, "scripts");
const target = path.resolve(root, "target");
// eslint-disable-next-line unicorn/prevent-abbreviations
export const workDirs = {
apps: {
app: {
cache: {
path: path.resolve(app, ".cache"),
},
path: app,
public: {
path: path.resolve(app, "public"),
},
},
counter: {
path: counter,
target: {
path: path.resolve(counter, "target"),
trunk: {
dist: {
path: path.resolve(counter, "target/trunk/dist"),
},
},
},
},
path: apps,
recorder: {
path: recorder,
target: {
path: path.resolve(recorder, "target"),
trunk: {
dist: {
path: path.resolve(recorder, "target/trunk/dist"),
},
},
},
},
},
etc: {
path: etc,
scripts: {
path: scripts,
},
workflowRuntime: {
path: workflowRuntime,
},
},
path: root,
target: {
apps: {
path: path.resolve(target, "apps"),
},
path: target,
release: {
path: path.resolve(target, "release"),
},
},
};