-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
60 lines (60 loc) · 4.01 KB
/
package.json
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
{
"name": "kando-dev",
"private": true,
"workspaces": [
"ui",
"tests"
],
"scripts": {
"start": "npm run start:electron",
"start:tauri": "AGENTS=2 BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) npm run network:tauri",
"start:electron": "AGENTS=2 BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) npm run network:electron",
"start:android": "npm run package && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run launch:android\"",
"network:tauri": "hc s clean && npm run build:happ && INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run launch:tauri\"",
"network:electron": "hc s clean && npm run build:happ && INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"npm run launch:electron\"",
"network:android": "npm run build:happ && BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) INTERNAL_IP=$(internal-ip --ipv4) concurrently -k \"npm run local-services\" \"UI_PORT=1420 npm run -w ui start\" \"AGENTS=1 npm run launch:tauri\" \"npm run launch:android\"",
"launch:tauri": "concurrently-repeat \"npm run tauri dev\" $AGENTS",
"launch:electron": "hc-spin --ui-port 1420 -n $AGENTS workdir/kando.happ",
"launch:android": "tauri android dev",
"launch:browser": "echo \"starting with admin $VITE_ADMIN_PORT\" && RUST_LOG=warn echo \"pass\" | hc s -f=$VITE_ADMIN_PORT --piped generate workdir/kando.happ --run=$VITE_APP_PORT -a kando network -b \"http://127.0.0.1:$BOOTSTRAP_PORT\" webrtc \"ws://127.0.0.1:$SIGNAL_PORT\"",
"dev-feedback": "VITE_USING_FEEDBACK=1 npm run dev",
"dev": "VITE_ADMIN_PORT=$(port) VITE_APP_PORT=$(port) SIGNAL_PORT=$(port) BOOTSTRAP_PORT=$(port) UI_PORT=8888 npm run x",
"x": "hc s clean && npm run build:happ && UI_PORT=8888 concurrently \"npm start -w ui\" \"npm run launch:browser\" \"hc run-local-services -b $BOOTSTRAP_PORT -s $SIGNAL_PORT\"",
"tool-dev": "npm run tool-devy",
"tool-devy": "concurrently \"npm start -w ui\" \"sleep 1 && weave --agent-idx 1 --dev-config we_dev/config.ts\" \"sleep 10 && weave --agent-idx 2 --dev-config we_dev/config.ts\"",
"tool-devx": "BPORT=46263 SPORT=46262; concurrently \"hc run-local-services -b $BPORT -s $SPORT\" \"npm start -w ui\" \"./we_dev/we.AppImage --dev-config we_dev/config.json --agent-num 1 -b http://127.0.0.1:$BPORT -s ws://127.0.0.1:$SPORT\" \"sleep 10 && ./we_dev/we.AppImage --dev-config we_dev/config.json --agent-num 2 -b http://127.0.0.1:$BPORT -s ws://127.0.0.1:$SPORT\"",
"test": "npm run build:zomes && hc app pack workdir --recursive && npm t -w tests",
"package": "npm run build:happ && npm run package -w ui && hc web-app pack workdir --recursive",
"build:happ": "npm run build:zomes && hc app pack workdir --recursive",
"build:zomes": "RUSTFLAGS='' CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown --workspace --exclude kandoapp",
"build:android": "npm run package && npm run tauri android build --apk",
"local-services": "hc run-local-services --bootstrap-interface $INTERNAL_IP --bootstrap-port $BOOTSTRAP_PORT --signal-interfaces $INTERNAL_IP --signal-port $SIGNAL_PORT",
"tauri": "tauri"
},
"devDependencies": {
"@theweave/cli": "0.13.0-gamma.3",
"@holochain/hc-spin": "^0.400.0-dev.3",
"@holochain-playground/cli": "^0.1.1",
"@rollup/plugin-typescript": "^8.0.0",
"@tsconfig/svelte": "^2.0.0",
"bestzip": "^2.2.0",
"concurrently": "^8.2.2",
"concurrently-repeat": "^0.0.1",
"cross-env": "^7.0.3",
"json-parse-better-errors": "^1.0.2",
"new-port-cli": "^1.0.0",
"rimraf": "^3.0.2",
"svelte-check": "^2.0.0",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.0.0",
"typescript": "^4.0.0",
"@tauri-apps/cli": "^2.0.0-beta.22",
"internal-ip-cli": "^2.0.0"
},
"engines": {
"npm": ">=7.0.0"
},
"dependencies": {
"update": "^0.7.4"
}
}