-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
45 lines (45 loc) · 2.85 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": "gamez-dev",
"private": true,
"workspaces": [
"ui",
"tests"
],
"scripts": {
"start": "AGENTS=2 BOOTSTRAP_PORT=$(port) SIGNAL_PORT=$(port) npm 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": "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\"",
"network": "hc s clean && npm run build:happ && UI_PORT=8888 concurrently \"npm start -w ui\" \"npm run launch:happ\" \"holochain-playground\"",
"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",
"package:download-deployed": "if [ ! -f workdir/deployed.happ ]; then curl -L -o workdir/deployed.webhapp https://github.com/holochain-apps/gamez/releases/download/v0.7.2/gamez.webhapp && hc web-app unpack -o workdir/deployed workdir/deployed.webhapp && cp workdir/deployed/gamez.happ workdir/deployed.happ && rm -rf workdir/ui workdir/deployed; fi",
"package:deployed": "npm run package:download-deployed && npm run package -w ui && cp workdir/deployed.happ workdir/gamez.happ && hc web-app pack workdir",
"package:test": "npm run package:download-deployed && cp workdir/deployed.happ workdir/gamez.happ",
"launch:happ": "hc-spin -n $AGENTS workdir/gamez.happ --ui-port $UI_PORT ",
"start:happ": "echo \"starting with admin $VITE_ADMIN_PORT\" && RUST_LOG=warn echo \"pass\" | hc s -f=$VITE_ADMIN_PORT --piped generate workdir/gamez.happ --run=$VITE_APP_PORT -a gamez network -b \"http://127.0.0.1:$BOOTSTRAP_PORT\" webrtc \"ws://127.0.0.1:$SIGNAL_PORT\"",
"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",
"format": "prettier --write \"ui/**/*.{js,ts,css,svelte}\" --ignore-path ./ui/.gitignore",
"hash-webhapp": "weave hash-webhapp ./workdir/gamez.webhapp"
},
"devDependencies": {
"@holochain-playground/cli": "^0.300",
"@holochain/hc-spin": "^0.400.0",
"@theweave/cli": "0.13.0-rc.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"bestzip": "^2.2.1",
"concurrently": "^9.0.1",
"concurrently-repeat": "^0.0.1",
"cross-env": "^7.0.3",
"json-parse-better-errors": "^1.0.2",
"new-port-cli": "^1.0.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"rimraf": "^6.0.1"
},
"engines": {
"npm": ">=7.0.0"
}
}