multiplexing shells for demo

This commit is contained in:
Ryan MacArthur
2024-10-31 01:19:32 -07:00
parent cb42b49074
commit 6fe7a8a1f2
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
layout {
pane {
pane split_direction="vertical" {
pane name="verifier" command="bash" {
args "-c" "cargo run --manifest-path ./interactive-demo/verifier-rs/Cargo.toml; ${SHELL-bash}"
}
}
pane split_direction="vertical" {
pane name="prover" command="bash" {
args "-c" "cargo run --manifest-path ./interactive-demo/prover-rs/Cargo.toml; ${SHELL-bash}"
}
}
pane split_direction="vertical" {
pane name="shell" command="bash" {
args "-c" "npm i && npm run build && npm link && cd ./interactive-demo/prover-ts && npm i && npm link && npm run dev; ${SHELL-bash}"
}
pane name="proxy" command="bash" {
args "-c" "cargo install wstcp && wstcp --bind-addr 127.0.0.1:55688 swapi.dev:443; ${SHELL-bash}"
}
}
}
}

View File

@@ -20,6 +20,8 @@
"build": "npm run build:lib",
"watch:dev": "webpack --config webpack.web.dev.config.js --watch",
"dev": "concurrently npm:watch:dev npm:serve:test",
"demo": "zellij --layout interactive-demo/zellij.kdl a interactive-demo || zellij --layout interactive-demo/zellij.kdl -s interactive-demo",
"zzdemo": "zellij kill-session interactive-demo",
"lint:eslint": "eslint . --fix",
"lint:tsc": "tsc --noEmit",
"lint": "concurrently npm:lint:tsc npm:lint:eslint",

1
zellij-config.kdl Normal file
View File

@@ -0,0 +1 @@
session_serialization true