-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
45 lines (44 loc) · 2.56 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
{
"name": "map-holons-dev",
"private": true,
"workspaces": [
"tests",
"ui"
],
"scripts": {
"mock": "npm run mock -w ui",
"start": "AGENTS=1 npm run network",
"local-services": "hc run-local-services -b 54000 -s 55000",
"network": "npm run build:happ && UI_PORT=4200 concurrently \"npm run local-services\" \"npm run start:agent\"",
"start:agent": "HC_PORT=$(get-port) HC_ADMIN_PORT=$(get-port) concurrently \"npm run launch:happ\" \"npm start -w ui\"",
"launch:happ": "hc s clean && echo \"pass\" | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/map-holons.happ --ui-port $UI_PORT network -b http://127.0.0.1:54000 webrtc ws://127.0.0.1:55000",
"test": "npm run build:zomes && hc app pack workdir --recursive && npm t -w tests",
"set-holochain-log": "export H_LOG=holochain=warn,holochain_sqlite=warn,kitsune_p2p_types=warn,holochain::core::queue_consumer=warn",
"sweetest": "npm run sweetest:quiet",
"sweetest:quiet": "npm run build:happ && export WASM_LOG=$H_LOG,dances=info,holons=info,descriptors=info && export RUST_LOG=$H_LOG,dances=info,holons=info,descriptors=info && cargo test",
"sweetest:info": "RUST_LOG=info WASM_LOG=info npm run build:happ && cargo test",
"sweetest:debug": "RUST_LOG=debug WASM_LOG=debug npm run build:happ && cargo test",
"sweetest:custom": "RUST_LOG=${RUST_LOG:-warn} WASM_LOG=${WASM_LOG:-warn} npm run build:happ && cargo test",
"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",
"clean": "npx rimraf target && npx rimraf .cargo && npx rimraf Cargo.lock && npx rimraf flake.lock && cargo clean",
"clean:ui": "npx --quiet rimraf package-lock.json node_modules ui/node_modules ui/.angular ui/dist && npx --quiet rimraf tests/node_modules",
"cb": "clear && npm run build:happ"
},
"_comments": {
"sweetest:quiet": "Script to run tests with minimal tracing (warn level)",
"sweetest:info": "Script to run tests with moderate tracing (info level)",
"sweetest:debug": "Script to run tests with detailed tracing (debug level)",
"sweetest:custom": "Script to run tests with custom tracing levels. Defaults to 'warn' if env variables not already set"
},
"devDependencies": {
"@holochain-playground/cli": "^0.300.1",
"concurrently": "^9.1.0",
"rimraf": "^6.0.1",
"get-port-cli":"^3.0.0"
},
"engines": {
"npm": ">=7.0.0"
}
}