-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
executable file
·46 lines (46 loc) · 2.99 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
{
"name": "@eyss/elemental-chess-dev",
"private": true,
"workspaces": [
"ui/*",
"dna/tests"
],
"scripts": {
"start": "npm run build:happ && npm run start:agent",
"network": "npm run build:happ && concurrently-repeat \"npm run start:agent\"",
"start:agent": "cross-env HC_PORT=$(port) ADMIN_PORT=$(port) APP_ID=elemental-chess ENV=hcdev npm run start:inner",
"network:holo": "npm run build:happ && concurrently -k \"npm run start:holo:alice\" \"npm run start:holo:bob\"",
"start:holo:alice": "concurrently -k \"npm:chaperone-alice\" \"HC_PORT=8888 CHAPERONE_PORT=24273 ENV=holodev APP_ID=uhCkkHSLbocQFSn5hKAVFc_L34ssLD52E37kq6Gw9O3vklQ3Jv7eL ADMIN_PORT=9000 npm run start:inner\"",
"start:holo:bob": "concurrently -k \"npm:chaperone-bob\" \"HC_PORT=8889 CHAPERONE_PORT=24274 ENV=holodev APP_ID=uhCkkHSLbocQFSn5hKAVFc_L34ssLD52E37kq6Gw9O3vklQ3Jv7eL ADMIN_PORT=9001 npm run start:inner\"",
"start:inner": "concurrently \"npm run playground\" \"npm run start:happ\" \"npm run build:watch -w @eyss/chess\" \"npm run start -w @eyss/elemental-chess\"",
"chaperone-alice": "chaperone-server --config ./setup/chaperone_alice.json",
"chaperone-bob": "chaperone-server --config ./setup/chaperone_bob.json",
"test": "npm run build:happ && npm t -w tests",
"prepare": "npm run build -w @eyss/chess && npm run build -w @eyss/elemental-chess",
"package": "npm run build:happ && npm run build -w @eyss/chess && npm run package:holochain && npm run package:holo",
"package:holochain": "ENV=hc npm run build -w @eyss/elemental-chess && cd ui/elemental-chess/dist && bestzip ../../../workdir/elemental-chess-ui.zip * && cd ../../../ && hc web-app pack workdir",
"package:holo": "ENV=holo npm run build -w @eyss/elemental-chess && cd ui/elemental-chess/dist && bestzip ../../../workdir/elemental-chess-ui.holo.zip *",
"start:happ": "RUST_LOG=warn WASM_LOG=debug hc s -f=$ADMIN_PORT generate ./workdir/elemental-chess.happ --run=$HC_PORT --app-id=$APP_ID network --bootstrap https://bootstrap-staging.holo.host/ quic",
"build:happ": "npm run build:dna && hc app pack ./workdir/",
"build:dna": "npm run build:zome && hc dna pack ./dna/workdir/",
"build:zome": "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"playground": "run-singleton \"holochain-playground\"",
"clean": "npm run clean:node && npm run clean:rust",
"clean:node": "npx rimraf node_modules && npx rimraf ui/elemental-chess/node_modules/ && npx rimraf ui/chess/node_modules/ && npx rimraf dna/tests/node_modules",
"clean:rust": "npx rimraf .hc* && npx rimraf target && npx rimraf .cargo && npx rimraf Cargo.lock"
},
"devDependencies": {
"@holochain-playground/cli": "0.0.8",
"bestzip": "^2.2.1",
"concurrently": "^7.1.0",
"concurrently-repeat": "^0.0.1",
"cross-env": "^7.0.3",
"new-port-cli": "^1.0.0",
"rimraf": "^3.0.2",
"rollup-plugin-visualizer": "^5.6.0",
"run-singleton-cli": "^0.0.5"
},
"engines": {
"npm": ">=7.0.0"
}
}