-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
109 lines (109 loc) · 5.25 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
{
"name": "holochain-launcher-0.4",
"version": "0.400.0-rc.2",
"private": true,
"description": "Holochain Launcher (0.4)",
"author": "Holochain Foundation <info@holochain.org> (http://holochain.org)",
"license": "CAL-1.0",
"main": "./out/main/index.js",
"workspaces": [
"src/renderer",
"libs/*"
],
"scripts": {
"format": "prettier . \"!src/renderer\" --write",
"lint": "eslint . --fix",
"lintAndFormat": "concurrently \"yarn lint\" \"yarn format\"",
"lintAndFormatAll": "concurrently \"yarn lintAndFormat\" \"cd src/renderer && yarn run check || true && yarn lint || true && yarn format && cd ../..\"",
"lintAndFormatAllPrePush": "yarn lint && yarn format && cd src/renderer && yarn run check && yarn lint && yarn format && cd ../..",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck": "npm run typecheck:node",
"start": "electron-vite preview",
"dev": "BOOTSTRAP_PORT=34523 SIGNAL_PORT=34524 yarn run-1-agent",
"dev-2": "BOOTSTRAP_PORT=34523 SIGNAL_PORT=34524 yarn run-2-agents",
"run-1-agent": "concurrently -p \"[{time}] [{name}]\" -n=sveltekit,electron -c=red,blue \"yarn local-services\" \"electron-vite dev --watch -- -b http://127.0.0.1:\"$BOOTSTRAP_PORT\" -s ws://127.0.0.1:\"$SIGNAL_PORT\"\" \"yarn run dev:sveltekit\"",
"run-2-agents": "concurrently -p \"[{time}] [{name}]\" -n=sveltekit,electron -c=red,blue \"yarn local-services\" \"electron-vite dev --watch -- --profile agent1 -b http://127.0.0.1:\"$BOOTSTRAP_PORT\" -s ws://127.0.0.1:\"$SIGNAL_PORT\"\" \"sleep 5 && electron-vite dev --watch -- --profile agent2 -b http://127.0.0.1:\"$BOOTSTRAP_PORT\" -s ws://127.0.0.1:\"$SIGNAL_PORT\"\" \"yarn run dev:sveltekit\"",
"local-services": "hc run-local-services --bootstrap-port $BOOTSTRAP_PORT --signal-port $SIGNAL_PORT",
"build": "yarn test && yarn build:sveltekit && yarn typecheck && yarn update:electron-builder && electron-vite build",
"rebuild-appstore-lib": "yarn workspace appstore-tools build && rimraf ./node_modules ./src/renderer/node_modules && yarn cache clean && yarn install",
"build:rust-utils": "cd rust-utils && yarn && yarn build && cd ..",
"setup": "yarn build:rust-utils && yarn build:libs",
"build:libs": "yarn workspace appstore-tools install && yarn workspace appstore-tools build && rimraf src/renderer/.svelte-kit && rimraf src/renderer/node_modules && rimraf node_modules && yarn install",
"fetch:apps-and-binaries": "node ./scripts/fetch-apps-and-binaries.mjs",
"check:binaries": "node ./scripts/check-binaries.mjs",
"update:electron-builder": "node ./scripts/update-electron-builder.js",
"postinstall": "electron-builder install-app-deps",
"build:win": "yarn check:binaries && yarn build && electron-builder --win --config",
"build:mac-arm64": "yarn check:binaries && yarn build && electron-builder --mac --arm64 --config",
"build:mac-x64": "yarn check:binaries && yarn build && electron-builder --mac --x64 --config",
"build:linux": "yarn check:binaries && yarn build && electron-builder --linux --config",
"dev:sveltekit": "cd src/renderer && yarn dev",
"build:sveltekit": "cd src/renderer && yarn build",
"prepare": "husky",
"test": "tsc -p ./tsconfig.node.tests.json && mocha out-tests/src/main/tests/*.js"
},
"dependencies": {
"@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/utils": "^3.0.0",
"@electron/notarize": "2.3.2",
"@holochain/client": "0.18.0-dev.1",
"@matthme/electron-updater": "6.3.0-alpha.1",
"@msgpack/msgpack": "^2.8.0",
"@spartan-hc/bundles": "0.2.5",
"@trpc/client": "^10.44.1",
"@trpc/server": "^10.44.1",
"adm-zip": "0.5.14",
"appstore-tools": "file:./libs/appstore",
"bufferutil": "4.0.8",
"commander": "12.1.0",
"electron-context-menu": "3.6.1",
"electron-serve": "^1.2.0",
"electron-trpc": "^0.6.1",
"elliptic": "6.5.5",
"get-folder-size": "5.0.0",
"hc-launcher-rust-utils": "file:./rust-utils/dist",
"js-sha256": "^0.11.0",
"nanoid": "5.0.7",
"semver": "^7.6.2",
"split": "1.0.1",
"trpc-svelte-query-adapter": "^2.3.4",
"winston": "3.13.0",
"zod": "^3.23.8"
},
"lint-staged": {
"*.{js,ts,svelte,json,postcss,html}": "yarn lintAndFormatAllPrePush"
},
"devDependencies": {
"@electron-toolkit/eslint-config-prettier": "^2.0.0",
"@electron-toolkit/eslint-config-ts": "^2.0.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@eslint/eslintrc": "^3.1.0",
"@napi-rs/cli": "^2.18.3",
"@types/adm-zip": "0.5.5",
"@types/elliptic": "6.4.18",
"@types/mocha": "10.0.7",
"@types/node": "^20.14.8",
"@types/semver": "^7.5.8",
"@types/split": "^1.0.5",
"@typescript-eslint/parser": "^7.13.1",
"concurrently": "^8.2.2",
"electron": "^29.4.1",
"electron-builder": "^24.12.0",
"electron-squirrel-startup": "^1.0.1",
"electron-vite": "^2.3.0",
"eslint": "^9.5.0",
"eslint-plugin-simple-import-sort": "^12.1.0",
"get-port": "7.1.0",
"husky": "^9.0.11",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.7",
"mocha": "10.4.0",
"octokit": "4.0.2",
"prettier": "^3.3.2",
"rimraf": "5.0.7",
"typescript": "^5.5.2",
"typescript-eslint": "^7.13.1",
"utf-8-validate": "^6.0.4",
"vite": "^5.3.1"
}
}