-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
41 lines (41 loc) · 2.88 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
{
"name": "requests_and_offers",
"private": true,
"workspaces": [
"ui",
"tests"
],
"scripts": {
"postinstall": "pnpm run download-hrea-suite",
"start": "AGENTS=${AGENTS:-2} BOOTSTRAP_PORT=$(get-port) SIGNAL_PORT=$(get-port) pnpm run network",
"network": "hc sandbox clean && pnpm run build:happ && UI_PORT=$(get-port) concurrently \"pnpm --filter ui start\" \"pnpm run launch:happ\" \"holochain-playground\"",
"test": "npm run build:zomes && hc app pack workdir --recursive && npm t -w tests && npm t -w ui && npm run test:status",
"tests": "npm run test",
"test:ui": "npm run build:zomes && hc app pack workdir --recursive && npm t -w ui",
"test:misc": "npm run build:zomes && hc app pack workdir --recursive && npm t --filter misc -w tests",
"test:users": "npm run build:zomes && hc app pack workdir --recursive && npm t --filter users -w tests",
"test:administration": "npm run build:zomes && hc app pack workdir --recursive && npm t --filter administration -w tests",
"test:status": "cargo test --package administration_integrity --lib -- tests::status::status_tests --show-output",
"test:organizations": "npm run build:zomes && hc app pack workdir --recursive && npm t --filter organizations -w tests",
"launch:happ": "hc-spin -n $AGENTS --ui-port $UI_PORT workdir/requests_and_offers.happ",
"start:tauri": "AGENTS=${AGENTS:-2} BOOTSTRAP_PORT=$(get-port) SIGNAL_PORT=$(get-port) pnpm run network:tauri",
"network:tauri": "hc sandbox clean && pnpm run build:happ && UI_PORT=$(get-port) concurrently \"pnpm --filter ui start\" \"pnpm run launch:tauri\" \"holochain-playground\"",
"launch:tauri": "concurrently \"hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/requests_and_offers.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$SIGNAL_PORT\"\"",
"package": "pnpm run build:happ && pnpm --filter ui package && hc web-app pack workdir --recursive",
"build:happ": "pnpm run build:zomes && hc app pack workdir --recursive",
"build:zomes": "RUSTFLAGS='' CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"download-hrea-suite": "[ ! -f \"workdir/hrea_suite.happ\" ] && curl -L --output workdir/hrea_suite.happ https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_suite.happ; exit 0",
"clean:hrea-suite": "rimraf workdir/hrea_suite.happ"
},
"devDependencies": {
"@holochain-playground/cli": "^0.300.0-rc.0",
"@holochain/hc-spin": "0.300.3",
"concurrently": "^6.2.1",
"get-port-cli": "^3.0.0",
"rimraf": "^6.0.1"
},
"engines": {
"node": ">=16.0.0"
},
"packageManager": "[email protected]+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
}