-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
58 lines (58 loc) · 6.02 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
{
"name": "acfn-dev",
"private": true,
"workspaces": [
"ui",
"tests"
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall1": "pnpm run download-hrea-obs && pnpm run download-hrea-specification && pnpm run download-hrea-agent && pnpm run download-hrea-planning && pnpm run download-hrea-proposal && pnpm run download-hrea-plan && pnpm run download-hrea-agreement && pnpm run download-facets",
"start": "AGENTS=1 pnpm run network",
"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 start:happ\" \"hc run-local-services -b $BOOTSTRAP_PORT -s $SIGNAL_PORT\"",
"tool-dev": " UI_PORT=8888 npm run tool-devy",
"tool-devy": "WASM_LOG=debug RUST_LOG='debug,wasmer_compiler_cranelift=error,holochain::core::workflow=error,holochain::conductor::entry_def_store=error' RUST_BACKTRACE=1 GRAPHQL_DEBUG=3 concurrently \"npm start -w ui\" \"sleep 1 && weave --print-holochain-logs true --agent-idx 1 --dev-config we_dev/config.json\" \"sleep 10 && weave --agent-idx 2 --dev-config we_dev/config.json\"",
"weave": "weave --help",
"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\"",
"network": "hc s clean && pnpm run build:happ && UI_PORT=8888 concurrently \"cd ui && pnpm start\" \"pnpm run launch:happ\" \"holochain-playground\"",
"test": "pnpm run build:zomes && hc app pack workdir && cd tests && pnpm t",
"launch:happ": "concurrently \"hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/acfn.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$SIGNAL_PORT\"\"",
"launch:spin": "echo \"pass\" | RUST_LOG=warn hc spin -n $AGENTS --ui-port $UI_PORT workdir/acfn.happ",
"launch:normal": "echo \"pass\" | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/acfn.happ --ui-port $UI_PORT network mem",
"start:happ": "echo \"starting with admin $VITE_ADMIN_PORT\" && RUST_LOG=warn echo \"pass\" | hc s -f=$VITE_ADMIN_PORT --piped generate workdir/acfn.happ --run=$VITE_APP_PORT -a acfn network -b \"http://127.0.0.1:$BOOTSTRAP_PORT\" webrtc \"ws://127.0.0.1:$SIGNAL_PORT\"",
"package": "rm -f ui/dist.zip && pnpm run build:happ && pushd ui && pnpm run package && popd && hc web-app pack workdir --recursive",
"package2": "pnpm run build:happ && pnpm run package -w ui && hc web-app pack workdir --recursive",
"build:happ": "pnpm run build:zomes && hc dna pack dnas/migration/workdir && hc app pack workdir",
"build:zomes": "RUSTFLAGS='' CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"download-facets": "[ ! -f \"workdir/hc_facets.dna\" ] && curl -L --output workdir/hc_facets.dna https://github.com/Carbon-Farm-Network/holochain-facets/releases/download/0.1.0-beta/hc_facets.dna; exit 0",
"download-hrea-obs": "[ ! -f \"workdir/hrea_observation.dna\" ] && curl -L --output workdir/hrea_observation.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_observation.dna; exit 0",
"download-hrea-specification": "[ ! -f \"workdir/hrea_specification.dna\" ] && curl -L --output workdir/hrea_specification.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_specification.dna; exit 0",
"download-hrea-agent": "[ ! -f \"workdir/hrea_agent.dna\" ] && curl -L --output workdir/hrea_agent.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_agent.dna; exit 0",
"download-hrea-planning": "[ ! -f \"workdir/hrea_planning.dna\" ] && curl -L --output workdir/hrea_planning.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_planning.dna; exit 0",
"download-hrea-proposal": "[ ! -f \"workdir/hrea_proposal.dna\" ] && curl -L --output workdir/hrea_proposal.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_proposal.dna; exit 0",
"download-hrea-plan": "[ ! -f \"workdir/hrea_plan.dna\" ] && curl -L --output workdir/hrea_plan.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_plan.dna; exit 0",
"download-hrea-agreement": "[ ! -f \"workdir/hrea_agreement.dna\" ] && curl -L --output workdir/hrea_agreement.dna https://github.com/h-REA/hREA/releases/download/happ-0.2.0-beta/hrea_agreement.dna; exit 0",
"clean:hrea-modules": "rimraf workdir/hrea_observation.dna; rimraf workdir/hrea_specification.dna; rimraf workdir/hrea_agent.dna; rimraf workdir/hrea_planning.dna; rimraf workdir/hrea_proposal.dna; rimraf workdir/hrea_plan.dna; rimraf workdir/hrea_agreement.dna",
"clean:modules": "rimraf node_modules; for DIR in $(find -type d -iname node_modules); do echo \" Remove $DIR\"; rm -Rf \"$DIR\"; done",
"clean:build-cache": "rimraf .cargo; rimraf ui/.svelte-kit",
"clean:build": "rimraf target; rm dnas/acfn/workdir/acfn.dna; rm workdir/acfn.happ",
"clean": "pnpm run clean:build; pnpm run clean:build-cache; pnpm run clean:hrea-modules; pnpm run clean:modules",
"import-hrea-local": "cp ../hREA/bundles/dna/hrea_combined/hrea_combined.dna ./workdir/hrea_combined.dna",
"import-facets-local": "cp ../hc-facets/dnas/hc_facets/workdir/hc_facets.dna ./workdir/hc_facets.dna",
"install-hrea-npm": "rm -rf node_modules && sh ./scripts/update-hrea-modules.sh"
},
"devDependencies": {
"@theweave/cli": "0.13.0-delta.1",
"@holochain-playground/cli": "^0.1.1",
"@holochain/hc-spin": "^0.200.3",
"@types/svelte-leafletjs": "^0.8.3",
"concurrently": "^6.2.1",
"rimraf": "^3.0.2",
"new-port-cli": "^1.0.0",
"npm-check-updates": "17.1.0"
},
"engines": {
"npm": ">=7.0.0"
}
}