-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-layout.kdl
73 lines (71 loc) · 2.32 KB
/
test-layout.kdl
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
layout title="zellij-dev" cwd="/home/aram/code/layout-manager" {
default_tab_template {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
children
pane size=1 borderless=true {
plugin location="zellij:status-bar"
}
}
tab name="layout-manager" {
pane split_direction="vertical" {
pane edit="src/main.rs"
pane stacked=true {
pane command="bash" name="Build and reload plugin" {
args "-ic" "cargo build && zellij action start-or-reload-plugin file:target/wasm32-wasi/debug/layout-manager.wasm --configuration server_url=\"http://localhost:3000/api/layouts\""
start_suspended true
}
}
}
}
tab name="layout-server" cwd="../layout-server" {
floating_panes {
pane name="Setting up environment..." {
x "0%";
y "0%";
width "100%";
height "100%";
// plugin location="https://github.com/imsnif/zlaunch/releases/download/v0.2.0/zlaunch.wasm" {
plugin location="file:/home/aram/code/zlaunch/target/wasm32-wasi/debug/zlaunch.wasm" {
stop_on_failure true
commands {
"curl https://get.volta.sh | bash";
"/tmp/i-error && volta install pnpm";
"pnpm install";
"docker-compose up -d";
}
panes_to_run_on_completion {
"Start Server"
}
}
}
}
pane split_direction="vertical" {
pane command="pnpm" name="Start Server" {
args "dev"
start_suspended true
}
pane split_direction="horizontal" stacked=true {
pane command="pnpm" name="Typecheck" {
args "--filter" "backend" "typecheck"
start_suspended true
}
pane command="pnpm" name="Lint" {
args "--filter" "backend" "lint"
start_suspended true
}
// pane command="pnpm" name="Firebase Auth Emulator" {
// args "--filter" "backend" "emulator:start"
// cwd "../layout-server"
// start_suspended true
// }
pane command="scripts/create-user.sh" name="Auth Tokens" {
args ""
start_suspended true
}
pane expanded=true;
}
}
}
}