Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
39 lines (39 loc) · 2.6 KB
/
Copy pathpackage.json
File metadata and controls
39 lines (39 loc) · 2.6 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
{
"name": "converge-dev",
"private": true,
"workspaces": [
"ui",
"tests"
],
"scripts": {
"start": "AGENTS=2 BOOTSTRAP_PORT=9001 SIGNAL_PORT=9002 yarn network",
"dev": "VITE_ADMIN_PORT=9003 VITE_APP_PORT=9004 SIGNAL_PORT=9005 BOOTSTRAP_PORT=9006 UI_PORT=8888 yarn run x",
"x": "hc s clean && yarn build:happ && UI_PORT=8888 concurrently \"yarn workspace ui start\" \"yarn run start:happ\" \"hc run-local-services -b $BOOTSTRAP_PORT -s $SIGNAL_PORT\"",
"tool-dev": "UI_PORT=8888 yarn run tool-devy",
"tool-devy": "concurrently \"yarn workspace ui start\" \"sleep 1 && weave --agent-idx 1 --dev-config weave/config.ts\" \"sleep 10 && weave --agent-idx 2 --dev-config weave/config.ts --sync-time 20000\"",
"tool-devx": "BPORT=46263 SPORT=46262; concurrently \"hc run-local-services -b $BPORT -s $SPORT\" \"yarn workspace ui start\" \"./weave/we.AppImage --dev-config weave/config.json --agent-num 1 -b http://127.0.0.1:$BPORT -s ws://127.0.0.1:$SPORT\" \"sleep 10 && ./weave/we.AppImage --dev-config weave/config.json --agent-num 2 -b http://127.0.0.1:$BPORT -s ws://127.0.0.1:$SPORT\"",
"network": "hc s clean && yarn build:happ && concurrently \"yarn workspace ui start\" \"hc-spin -n 2 --ui-port 8888 ./workdir/converge.webhapp\"",
"test": "yarn run build:zomes && hc app pack workdir --recursive && yarn workspace tests test",
"launch:happ": "hc-spin -n $AGENTS workdir/converge.happ --ui-port $UI_PORT",
"launch:spin": "echo \"pass\" | RUST_LOG=warn hc spin -n $AGENTS --ui-port $UI_PORT workdir/converge.happ",
"package": "rm -f ui/dist.zip && rm -rf ui/dist && yarn build:happ && NODE_OPTIONS='--max-old-space-size=4096' yarn workspace ui package && hc web-app pack workdir --recursive",
"start:happ": "echo \"starting with admin $VITE_ADMIN_PORT\" && RUST_LOG=warn echo \"pass\" | hc s -f=$VITE_ADMIN_PORT --piped generate workdir/converge.happ --run=$VITE_APP_PORT -a converge network -b \"http://127.0.0.1:$BOOTSTRAP_PORT\" webrtc \"ws://127.0.0.1:$SIGNAL_PORT\"",
"build:happ": "yarn run build:zomes && hc app pack workdir --recursive",
"build:zomes": "CARGO_TARGET_DIR=target RUSTFLAGS='--cfg getrandom_backend=\"custom\"' cargo build --release --target wasm32-unknown-unknown",
"calculate-hashes": "weave hash-webhapp 0.2.3 workdir/converge.webhapp"
},
"devDependencies": {
"@theweave/cli": "0.15.19",
"@holochain/hc-spin": "^0.600.0",
"@holochain-playground/cli": "^0.1.1",
"concurrently": "^6.2.1",
"rimraf": "^3.0.2",
"new-port-cli": "^1.0.0"
},
"dependencies": {
"svelte-icons": "^2.1.0"
},
"engines": {
"yarn": ">=1.22.0"
}
}