-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
131 lines (109 loc) · 10.5 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name" : "where-dev",
"version" : "0.2.4",
"config" : {
"hc_version" : "0.2.4",
"zits_version" : "1.12.0",
"bin" : "bin",
"we_test_folder": "../we-electron"
},
"private" : true,
"workspaces" : [
"webcomponents",
"webapp",
"webapp.ludotheque",
"we-applet",
"electron"
],
"scripts" : {
"postinstall" : "mkdir -p artifacts",
"install:submodules" : "bash scripts/install-submodules.sh $npm_package_config_hc_version",
"install:rust" : "bash submodules/hc-prebuilt/install-rust.sh",
"install:hash-zome" : "bash submodules/hc-prebuilt/install-hash-zome.sh $npm_package_config_bin",
"install:hc" : "bash submodules/hc-prebuilt/install-hc-cli.sh $npm_package_config_bin $npm_package_config_hc_version",
"install:zits" : "cargo install zits --version $npm_package_config_zits_version",
"version" : "$npm_package_config_bin/hc --version & holochain --version & lair-keystore --version & tsc --version",
"hash-zome" : "bash scripts/write-zome-hash.sh $npm_package_config_bin",
"build:zome" : "CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown && npm run hash-zome",
"build:dna" : "npm run build:zome && mkdir -p artifacts && $npm_package_config_bin/hc dna pack -o artifacts/where.dna dna/workdir/dna-where && $npm_package_config_bin/hc dna pack -o artifacts/ludotheque.dna dna/workdir/dna-ludotheque",
"build:happ" : "npm run build:dna && $npm_package_config_bin/hc app pack -o artifacts/where.happ dna/workdir/happ-where && $npm_package_config_bin/hc app pack -o artifacts/where-standalone.happ dna/workdir/happ-where-standalone && $npm_package_config_bin/hc app pack -o ./artifacts/ludotheque.happ dna/workdir/happ-ludotheque && npm run copy:happ",
"copy:happ" : "cp -v artifacts/where.happ electron/bin && cp -v artifacts/ludotheque.happ electron/bin",
"extract:localize" : "npm run localize:extract -w webcomponents && npm run localize:extract -w webapp",
"build:localize" : "npm run localize:build -w webcomponents && npm run localize:build -w webapp",
"build:webapp" : "npm run build:localize && npm run build -w webcomponents && npm run dist -w webapp",
"build:devtest" : "npm run clean:hc & npm run build:happ && bash scripts/ts-bindings.sh && npm run build -w webcomponents && npm run build -w webapp",
"build:devtest:ludotheque" : "npm run clean:hc & npm run build:happ && bash scripts/ts-bindings.sh && npm run build -w webcomponents && npm run build -w webapp.ludotheque",
"dev:components" : "npm run build:watch -w webcomponents",
"devtest" : "npm run build:devtest && concurrently \"npm run build:watch -w webcomponents\" \"npm run build:watch -w webapp\" \"npm run start:mem\"",
"devtest:ludo" : "npm run clean:hc & npm run build:happ && npm run build -w webcomponents && npm run build -w webapp.ludotheque && concurrently \"npm run build:watch -w webcomponents\" \"npm run build:watch -w webapp.ludotheque\" \"npm run start:mem:ludotheque\"",
"devtest:we" : "npm run build:devtest && npm run devtest -w we-applet",
"devtest:we:ludo" : "npm run build:devtest:ludotheque && npm run devtest:ludo -w we-applet",
"devtest:electron" : "npm run build -w webcomponents && npm run dist -w webapp && HAPP_BUILD_MODE='Debug' npm run devtest -w electron",
"prodtest" : "npm run dist -w webapp && cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) concurrently \"npm run dev:components\" \"npm run new-sandbox:public\" \"sleep 7 && npm run start:ui -w webapp\"",
"prodtest:electron" : "npm run build -w webcomponents && npm run dist -w webapp && npm run devtest -w electron",
"prodtestfull:we" : "npm run build:devtest && npm run dist:we && npm run prodtest:we",
"prodtest:we" : "cross-env BOOT_PORT=$(port) SIGNAL_PORT=$(port) concurrently \"npm run serve:run\" \"cross-env AGENT_NUM=1 npm run prodtest:we-launch\"",
"prodtest:we-launch" : "/c/Users/damien/AppData/Local/Programs/org.lightningrodlabs.we-electron-alpha/lightningrodlabs-we \"-b http://127.0.0.1:$BOOT_PORT\" \"-s ws://127.0.0.1:$SIGNAL_PORT\" --dev-config we.prodtest.config.json --agent-idx $AGENT_NUM",
"_save-ports" : "echo $HC_APP_PORT > .hc_app_$INDEX && echo $HC_ADMIN_PORT > .hc_admin_$INDEX",
"start:mem" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) HAPP_BUILD_MODE='Debug' concurrently \"npm run dev:components\" \"npm run new-sandbox:mem\" \"sleep 7 && npm run start:ui -w webapp\"",
"start:mem:ludotheque" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) HAPP_BUILD_MODE='Debug' concurrently \"npm run new-sandbox:mem:ludo\" \"sleep 7 && npm run start:ui -w webapp.ludotheque\"",
"start:local" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) HAPP_BUILD_MODE='Debug' concurrently \"npm run dev:components\" \"npm run new-sandbox:local\" \"npm run _save-ports\" \"sleep 7 && npm run start:ui -w webapp\"",
"start:public" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) HAPP_BUILD_MODE='Debug' concurrently \"npm run dev:components\" \"npm run new-sandbox:public\" \"sleep 7 && npm run start:ui -w webapp\"",
"new-sandbox:mem" : "RUST_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT generate artifacts/where.happ --run=$HC_APP_PORT -a where network mem",
"new-sandbox:mem:ludo" : "RUST_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT generate artifacts/ludotheque.happ --run=$HC_APP_PORT -a ludotheque network mem",
"new-sandbox:local" : "RUST_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT generate artifacts/where.happ --run=$HC_APP_PORT -a where network --bootstrap http://127.0.0.1:$BOOT_PORT webrtc ws://127.0.0.1:$SIGNAL_PORT",
"new-sandbox:public" : "RUST_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT generate artifacts/where.happ --run=$HC_APP_PORT -a where network --bootstrap https://bootstrap.holo.host/ webrtc wss://signal.holo.host",
"serve" : "cross-env BOOT_PORT=$(cat .hc_bootenv) SIGNAL_PORT=$(cat .hc_signalenv) npm run serve:run",
"serve:run" : "hc run-local-services --bootstrap-port $BOOT_PORT --signal-port $SIGNAL_PORT",
"serve:save" : "echo SIGNAL_PORT=$SIGNAL_PORT && echo $SIGNAL_PORT > .hc_signalenv && echo $BOOT_PORT > .hc_bootenv && echo BOOT_PORT=$BOOT_PORT",
"network2" : "npm run clean:hc & npm run build:devtest && cross-env BOOT_PORT=$(port) SIGNAL_PORT=$(port) concurrently \"npm run serve:save\" \"npm run serve:run\" \"cross-env INDEX=0 npm run start:local\" \"sleep 1 && cross-env INDEX=1 npm run start:local\"",
"network3" : "npm run clean:hc & npm run build:devtest && cross-env BOOT_PORT=$(port) SIGNAL_PORT=$(port) concurrently \"npm run serve:save\" \"npm run serve:run\" \"cross-env INDEX=0 npm run start:local\" \"sleep 1 && cross-env INDEX=1 npm run start:local\" \"sleep 2 && cross-env INDEX=2 npm run start:local\"",
"network:we" : "npm run clean:hc & npm run network2 -w we-applet",
"_sandbox" : "echo INDEX: $INDEX & echo PORTS: $BOOT_PORT $SIGNAL_PORT $HC_APP_PORT $HC_ADMIN_PORT & RUST_LOG=warn WASM_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT run $INDEX",
"_local" : "cross-env BOOT_PORT=$(cat .hc_bootenv) SIGNAL_PORT=$(cat .hc_signalenv) HC_APP_PORT=$(cat .hc_app_$INDEX) HC_ADMIN_PORT=$(cat .hc_admin_$INDEX) BUILD_MODE='dev' ADD_PROFILES=1 concurrently \"npm run _sandbox\" \"sleep 7 && npm run start:ui-only -w webapp\"",
"local0" : "cross-env INDEX=0 npm run _local",
"local1" : "cross-env INDEX=1 npm run _local",
"local2" : "cross-env INDEX=2 npm run _local",
"launch" : "echo pass | hc-launch --piped -n 1 artifacts/where.webhapp network mem",
"launch:we" : "echo pass | hc-launch --piped -n 1 artifacts/where-we_applet.webhapp network mem",
"test" : "npm run build:happ && npm run build -w @where/elements && npm t -w @where/tests",
"package:webapp" : "rm -rf artifacts/where-webapp-ui.zip & cd webapp/dist && bestzip ../../artifacts/where-webapp-ui.zip * && cd ../../ && $npm_package_config_bin/hc web-app pack webapp/webhapp.workdir -o artifacts/where.webhapp",
"package:we" : "rm -rf artifacts/where-we_applet-ui.zip & cd we-applet/dist && bestzip ../../artifacts/where-we_applet-ui.zip * && cd ../../ && $npm_package_config_bin/hc web-app pack we-applet/webhapp.workdir -o artifacts/where-we_applet.webhapp",
"dist:we" : "npm run dist -w we-applet && npm run package:we && npm run cp:we",
"cp:we" : "cp artifacts/where-we_applet.webhapp $npm_package_config_we_test_folder/testing-applets",
"update-version" : "bash scripts/update-version-number.sh $npm_package_version",
"dist:electron" : "bash submodules/hc-prebuilt/copy-binaries.sh electron/bin && cd electron && electron-builder build",
"dl-test-release" : "rm -rf release & mkdir -p release & gh release download manual-release -D release -R lightningrodlabs/where",
"clean" : "bash scripts/clean.sh",
"clean:npm" : "bash scripts/clean-npm.sh",
"clean:hc" : "rm -rf .hc* && rm -rf we-applet/.hc*",
"clean:all" : "git clean -f -x -d -e .idea && rm -rf submodules"
},
"devDependencies": {
"@types/ws" : "^8.5.3",
"bestzip" : "^2.2.0",
"concurrently" : "^6.2.1",
"concurrently-repeat" : "^0.0.1",
"cross-env" : "^7.0.3",
"new-port-cli" : "^1.0.0",
"tslib" : "^2.4.0",
"typescript" : "~5.2.0"
},
"dependencies" : {
"@holochain/client" : "=0.16.7",
"@lightningrodlabs/we-applet": "0.15.0",
"@ddd-qc/cell-proxy": "=0.21.0",
"@ddd-qc/lit-happ" : "=0.21.0",
"@ddd-qc/we-utils": "=0.22.1",
"@ddd-qc/profiles-dvm": "=0.22.5",
"@holochain-open-dev/core-types": "=0.7.0",
"@holochain-open-dev/profiles": "=0.17.3",
"@shoelace-style/shoelace": "2.11.2",
"@lit/context": "1.0.1",
"@lit/localize": "0.12.1",
"lit": "3.0.2"
},
"engines": {
"npm": ">=7.0.0"
}
}