forked from lightningrodlabs/where
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
110 lines (88 loc) · 7.92 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
{
"name" : "where-dev",
"version" : "0.2.2",
"config" : {
"hc_version" : "0.1.0",
"zits_version" : "1.8.0",
"bin" : "bin"
},
"private" : true,
"workspaces" : [
"webcomponents",
"webapp",
"we-applet",
"electron",
"webapp.ludotheque"
],
"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:ludo" : "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\"",
"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:ludotheque\"",
"devtest:we" : "npm run build:devtest && npm run devtest -w we-applet",
"devtest:we:ludo" : "npm run build:devtest:ludo && npm run devtest:ludo -w we-applet",
"devtest:electron" : "npm run build -w webcomponents && npm run dist -w webapp && BUILD_MODE='dev' npm run devtest -w electron",
"network" : "npm run build:happ && concurrently-repeat \"npm run start:proxied\"",
"network-playground" : "npm run build:happ && concurrently-repeat \"npm run start:playground\"",
"network-mdns" : "npm run build:happ && concurrently-repeat \"npm run start\"",
"prodtest" : "npm run dist -w webapp && cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) concurrently \"npm run dev:components\" \"npm run start:happ\" \"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",
"start:proxied" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) BUILD_MODE='dev' concurrently \"npm run dev:components\" \"npm run start:happ:proxied\" \"sleep 7 && npm run start:ui -w webapp\"",
"start" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) BUILD_MODE='dev' concurrently \"npm run dev:components\" \"npm run start:happ\" \"sleep 7 && npm run start:ui -w webapp\"",
"start:ludotheque" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) BUILD_MODE='dev' concurrently \"npm run start:happ:ludotheque\" \"sleep 7 && npm run start:ui -w webapp.ludotheque\"",
"start:playground" : "cross-env HC_APP_PORT=$(port) HC_ADMIN_PORT=$(port) BUILD_MODE='dev' concurrently \"npm run playground\" \"npm run dev:components\" \"npm run start:happ\" \"sleep 7 && npm run start:ui -w webapp\"",
"start-rerun" : "cross-env HC_APP_PORT=8888 concurrently -k \"npm run build:watch -w webcomponents\" \"$npm_package_config_bin/hc s run 0 -p 8888\" \"npm run start:ui -w webapp\"",
"start:happ" : "RUST_LOG=warn echo \"pass\" | $npm_package_config_bin/hc s --piped -f=$HC_ADMIN_PORT generate artifacts/where.happ -a where --run=$HC_APP_PORT network mdns",
"start:launcher" : "echo pass | hc-launch --piped -n 1 artifacts/where.webhapp network mdns",
"start:happ:ludotheque": "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 mdns",
"start:happ:proxied" : "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-staging.holo.host/ quic -p=kitsune-proxy://SYVd4CF3BdJ4DS7KwLLgeU3_DbHoZ34Y-qroZ79DOs8/kitsune-quic/h/165.22.32.11/p/5779/--",
"launch" : "echo pass | hc-launch --piped -n 1 artifacts/where.webhapp network mdns",
"launch:we" : "echo pass | hc-launch --piped -n 1 artifacts/where-we_applet.webhapp network mdns",
"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",
"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" : "npm run clean:hc && npm run clean:npm && npm run clean"
},
"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" : "^4.9.0"
},
"dependencies" : {
"@ddd-qc/cell-proxy": "0.18.2",
"@ddd-qc/lit-happ" : "0.18.2",
"@holochain/client" : "0.14.1",
"@lightningrodlabs/we-applet": "0.6.1",
"@shoelace-style/shoelace": "^2.4.0"
},
"engines": {
"npm": ">=7.0.0"
}
}