-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
132 lines (132 loc) · 8.67 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
132
{
"name": "org.lightningrodlabs.moss-0.13",
"version": "0.13.0-rc.1",
"private": true,
"description": "Moss (0.13)",
"main": "./out/main/index.js",
"workspaces": [
"libs/*",
"shared/*",
"iframes/*",
"src/renderer",
"example/ui",
"tests",
"wdocker"
],
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "yarn typecheck:node && yarn typecheck:web",
"start": "electron-vite preview",
"applet-dev": "yarn check:binaries && concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 1\" \"sleep 10 && electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 2 --sync-time 10000\"",
"applet-dev-1": "yarn check:binaries && concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"yarn workspace @theweave/attachments build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 1\"",
"applet-dev-3": "yarn check:binaries && concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 1\" \"sleep 5 && electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 2 --sync-time 10000\" \"sleep 5 && electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 3 --sync-time 10000\"",
"applet-dev-example-1": "yarn check:binaries && concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"electron-vite dev -- --dev-config weave.dev.config.example.ts --agent-idx 1 --holochain-wasm-log=debug --print-holochain-logs\"",
"applet-dev-example": "yarn check:binaries && concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"electron-vite dev -- --dev-config weave.dev.config.example.ts --agent-idx 1\" \"sleep 10 && electron-vite dev -- --dev-config weave.dev.config.example.ts --agent-idx 2\"",
"dev": "yarn check:binaries && concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"electron-vite dev -- --dev-config weave.dev.config.ts --agent-idx 1\"",
"dev:electron": "electron-vite dev",
"build": "yarn typecheck && electron-vite build && yarn build:cli",
"setup": "yarn install && yarn build:libs && yarn build:iframes && mkdir -p resources/default-apps && yarn prepare:default-apps && mkdir -p resources/bins && yarn fetch:binaries && yarn check:binaries && yarn install --check-files",
"setup:release": "yarn install --network-timeout 600000 && yarn build:libs && yarn build:iframes && yarn fetch:group-happ && yarn fetch:binaries && yarn check:binaries && yarn install --check-files",
"build:libs": "yarn build:api && yarn build:elements && yarn build:attachments && yarn build:grapes && yarn build:gc && yarn build:mt && yarn install --check-files && yarn build:utils && yarn build:tc",
"build:applet-iframe": "yarn workspace applet-iframe build",
"build:happ-iframe": "yarn workspace happ-iframe build",
"build:iframes": "yarn build:applet-iframe && yarn build:happ-iframe",
"build:cli": "rimraf ./cli/dist && cp -r ./out ./cli && mv ./cli/out ./cli/dist && cp moss.config.json ./cli/dist/main && cp -r ./resources ./cli/dist/main/resources && rimraf ./cli/dist/main/resources/bins && tsc -p tsconfig.defineConfig.json",
"link:libs": "cd libs/api && yarn link && cd ../utils && yarn link && yarn link @theweave/api && cd ../elements && yarn link && yarn link @theweave/api && cd ../../example/ui && yarn link @theweave/api && yarn link @theweave/elements && cd ../../src/renderer && yarn link @theweave/api && yarn link @theweave/utils && cd ../../utils/applet-iframe && yarn link @theweave/api",
"build:gc": "yarn workspace @theweave/group-client build",
"build:tc": "yarn workspace @theweave/tool-library-client build",
"build:mt": "yarn workspace @theweave/moss-types build",
"build:utils": "yarn workspace @theweave/utils build",
"build:api": "yarn workspace @theweave/api build",
"build:elements": "yarn workspace @theweave/elements build",
"build:attachments": "yarn workspace @theweave/attachments build",
"build:grapes": "yarn workspace grapes-editor build",
"publish:applets": "run-singleton \"node scripts/publish-applets.mjs\"",
"prepare:default-apps": "yarn fetch:group-happ",
"fetch:default-apps": "node ./scripts/fetch-default-apps.mjs",
"fetch:group-happ": "node ./scripts/fetch-group-app.mjs",
"prepare:group-happ": "yarn build:group-happ && cp ./workdir/group.happ resources/default-apps/",
"build:group-happ": "yarn build:zomes && hc app pack ./workdir --recursive && cp ./workdir/group.happ ./resources/default-apps",
"build:zomes": "cargo build --release --target-dir target --target wasm32-unknown-unknown --workspace",
"build:example-applet": "yarn build:libs && yarn build:zomes && yarn workspace example-applet package",
"postinstall": "electron-builder install-app-deps",
"fetch:binaries": "node ./scripts/fetch-binaries.mjs",
"check:binaries": "node ./scripts/check-binaries.mjs",
"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",
"devcli": "concurrently \"yarn workspace @theweave/api build:watch\" \"yarn workspace @theweave/elements build:watch\" \"yarn workspace @theweave/attachments build:watch\" \"UI_PORT=8888 yarn workspace example-applet start\" \"weave --dev-config weave.dev.config.ts --agent-idx 1\"",
"build:api-docs": "yarn workspace @theweave/api build:api-docs && rimraf ./docs/api-reference/api/* && mv ./libs/api/markdown/* ./docs/api-reference/api",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"test": "yarn workspace tests test"
},
"dependencies": {
"@electron-toolkit/preload": "^2.0.0",
"@electron-toolkit/utils": "^2.0.0",
"@holochain-open-dev/elements": "0.400.0",
"@holochain-open-dev/profiles": "0.400.0",
"@holochain-open-dev/stores": "0.400.0",
"@holochain-open-dev/utils": "0.400.0",
"@holochain/client": "^0.18.0",
"@theweave/api": "0.4.0-alpha.3",
"@theweave/moss-types": "0.3.0-alpha.2",
"@theweave/utils": "0.3.0-alpha.2",
"@lightningrodlabs/we-rust-utils": "0.400.1",
"@matthme/electron-updater": "6.3.0-alpha.1",
"@msgpack/msgpack": "^2.8.0",
"@sinclair/typebox": "0.33.12",
"adm-zip": "0.5.14",
"bufferutil": "4.0.8",
"commander": "11.1.0",
"electron-context-menu": "3.6.1",
"jimp": "1.6.0",
"mime": "4.0.0",
"nanoid": "5.0.4",
"semver": "^7.6.2",
"split": "1.0.1",
"ts-node": "10.9.2",
"utf-8-validate": "^6.0.3",
"uuid": "9.0.1",
"winston": "3.11.0"
},
"devDependencies": {
"@electron-toolkit/eslint-config-prettier": "^1.0.1",
"@electron-toolkit/eslint-config-ts": "^1.0.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@electron/notarize": "^2.1.0",
"@holochain-playground/cli": "^0.1.1",
"@theweave/cli": "0.13.0-epsilon.1",
"@microsoft/api-extractor": "7.47.7",
"@microsoft/api-documenter": "7.25.12",
"@types/adm-zip": "0.5.5",
"@types/js-yaml": "4.0.9",
"@types/mime": "3.0.4",
"@types/nanoid": "3.0.0",
"@types/node": "^18.17.5",
"concurrently": "^6.2.1",
"cross-env": "7.0.3",
"electron": "^29.3.1",
"electron-builder": "^24.6.3",
"electron-squirrel-startup": "^1.0.0",
"electron-vite": "2.3.0",
"eslint": "^8.47.0",
"get-port": "7.0.0",
"js-yaml": "^4.1.0",
"lit": "3.1.0",
"new-port-cli": "^1.0.0",
"octokit": "4.0.2",
"prettier": "^3.0.2",
"rimraf": "5.0.5",
"run-singleton-cli": "^0.0.7",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vitepress": "1.3.4",
"vite-plugin-static-copy": "^0.13.1"
}
}