forked from KittyCAD/modeling-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
228 lines (228 loc) · 10.9 KB
/
package.json
File metadata and controls
228 lines (228 loc) · 10.9 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
"name": "zoo-modeling-app",
"version": "0.0.0",
"private": true,
"productName": "Zoo Design Studio",
"author": {
"name": "Zoo Corporation",
"email": "info@zoo.dev",
"url": "https://zoo.dev"
},
"description": "Zoo Design Studio",
"main": ".vite/build/main.js",
"license": "MIT",
"workspaces": [
"packages/codemirror-lang-kcl",
"packages/codemirror-lsp-client",
"rust/kcl-language-server"
],
"dependencies": {
"@chainner/node-path": "^0.1.1",
"@codemirror/autocomplete": "^6.20.0",
"@codemirror/commands": "^6.10.1",
"@codemirror/language": "^6.11.3",
"@codemirror/lint": "^6.8.5",
"@codemirror/search": "^6.5.11",
"@codemirror/state": "^6.5.3",
"@codemirror/theme-one-dark": "^6.1.3",
"@csstools/postcss-oklab-function": "^4.0.12",
"@headlessui/react": "^1.7.19",
"@headlessui/tailwindcss": "^0.2.2",
"@kittycad/lib": "^3.1.23",
"@kittycad/react-shared": "^1.2.0",
"@lezer/highlight": "^1.2.1",
"@lezer/lr": "^1.4.7",
"@microlink/react-json-view": "^1.27.0",
"@million/lint": "^1.0.14",
"@msgpack/msgpack": "^3.1.3",
"@preact/signals-core": "^1.12.1",
"@preact/signals-react": "^3.6.1",
"@react-hook/resize-observer": "^2.0.1",
"@replit/codemirror-interact": "^6.3.1",
"@ts-stack/markdown": "^1.5.0",
"@tweenjs/tween.js": "^23.1.1",
"@xstate/react": "^4.1.1",
"bonjour-service": "^1.3.0",
"chokidar": "^5.0.0",
"codemirror": "^6.0.2",
"decamelize": "^6.0.1",
"diff": "^8.0.3",
"electron-updater": "^6.8.3",
"fuse.js": "^7.1.0",
"hammerjs": "^2.0.8",
"html2canvas-pro": "^1.5.12",
"isomorphic-fetch": "^3.0.0",
"json-rpc-2.0": "^1.7.1",
"jszip": "^3.10.1",
"minimist": "^1.2.8",
"ms": "^2.1.3",
"openid-client": "^5.6.5",
"re-resizable": "^6.11.2",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-fast-compare": "^3.2.2",
"react-hot-toast": "^2.5.2",
"react-hotkeys-hook": "^4.6.1",
"react-modal": "^3.16.3",
"react-modal-promise": "^1.0.2",
"react-resizable-panels": "^3.0.6",
"react-router-dom": "^7.11.0",
"sketch-helpers": "^0.0.4",
"three": "^0.182.0",
"ua-parser-js": "^1.0.37",
"uuid": "^11.1.0",
"vite-plugin-node-polyfills": "^0.25.0",
"vscode-jsonrpc": "^8.2.1",
"vscode-languageserver-protocol": "^3.17.5",
"vscode-uri": "^3.1.0",
"web-vitals": "^3.5.2",
"why-is-node-running": "^3.2.2",
"xstate": "^5.19.2",
"yargs": "^17.7.2"
},
"scripts": {
"prepare": "husky",
"install:rust": "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable && . ./scripts/load-rust-env.sh && (cd rust && (rustup show active-toolchain || rustup toolchain install) && rustup target add wasm32-unknown-unknown)",
"install:rust:windows": "powershell -Command \"if (-not (Test-Path $env:USERPROFILE\\.cargo\\bin\\cargo.exe)) { winget install Rustlang.Rustup }\"",
"install:wasm-pack:cargo": "cargo install wasm-pack",
"install:tools:windows": "winget install jqlang.jq MikeFarah.yq GitHub.cli",
"start": "vite --port=3000 --host=0.0.0.0",
"start:prod": "vite preview --port=3000",
"serve": "vite serve --port=3000",
"build": "npm run install:rust && . ./scripts/load-rust-env.sh && npm run install:wasm-pack:cargo && npm run build:wasm && vite build",
"build:wasm": "./scripts/build-wasm.sh",
"build:wasm:windows": "powershell -ExecutionPolicy Bypass -File ./scripts/build-wasm.ps1",
"build:wasm-dev": "npm run build:wasm:dev",
"build:wasm:dev": "./scripts/build-wasm-dev.sh",
"build:wasm:dev:windows": "powershell -ExecutionPolicy Bypass -File ./scripts/build-wasm-dev.ps1",
"pretest": "npm run remove-importmeta",
"tsc": "tsc",
"playwright": "playwright",
"fmt": "biome format --write eslint.config.mjs ./src *.ts *.js ./e2e ./packages ./rust/kcl-language-server ./rust/kcl-lib/bindings ./rust/kcl-wasm-lib/pkg",
"fmt:check": "biome check --write --organize-imports-enabled=true --formatter-enabled=false --linter-enabled=false --files-ignore-unknown=true ./src *.ts *.js ./e2e ./packages ./rust/kcl-language-server ./rust/kcl-lib/bindings ./rust/kcl-wasm-lib/pkg",
"organize-imports": "biome check --write --organize-imports-enabled=true --formatter-enabled=false --linter-enabled=false ./src ./e2e ./packages --files-ignore-unknown=true",
"check": "biome check ./src ./e2e ./packages/codemirror-lsp-client/src ./rust/kcl-language-server/client/src",
"fetch:wasm": "./scripts/get-latest-wasm-bundle.sh",
"fetch:wasm:windows": "powershell -ExecutionPolicy Bypass -File ./scripts/get-latest-wasm-bundle.ps1",
"remove-importmeta": "sed -i 's/import.meta.url/window.location.origin/g' \"./rust/kcl-wasm-lib/pkg/kcl_wasm_lib.js\"; sed -i '' 's/import.meta.url/window.location.origin/g' \"./rust/kcl-wasm-lib/pkg/kcl_wasm_lib.js\" || echo \"sed for both mac and linux\"",
"lint-fix": "eslint --fix src e2e packages/codemirror-lsp-client/src rust/kcl-language-server/client/src",
"lint": "eslint --max-warnings 0 src e2e packages/codemirror-lsp-client/src rust/kcl-language-server/client/src",
"circular-deps": "dpdm --no-warning --no-tree -T --skip-dynamic-imports=circular src/index.tsx",
"circular-deps:overwrite": "npm run circular-deps | sed '$d' | grep -v '^npm run' > scripts/known/circular.txt",
"circular-deps:diff": "./scripts/diff-circular-deps.sh",
"circular-deps:diff:nodejs": "npm run circular-deps:diff || node ./scripts/diff.js",
"files:set-version": "echo \"$(jq --arg v \"$VERSION\" '.version=$v' package.json --indent 2)\" > package.json",
"files:set-windows-codesign-config": "./scripts/set-windows-codesign-config.sh",
"files:set-notes": "./scripts/set-files-notes.sh",
"files:flip-to-staging": "./scripts/flip-files-to-staging.sh",
"files:flip-to-staging:windows": "powershell -ExecutionPolicy Bypass -File ./scripts/flip-files-to-staging.ps1",
"files:invalidate-bucket": "./scripts/invalidate-files-bucket.sh",
"files:invalidate-bucket:staging": "./scripts/invalidate-files-bucket.sh --staging",
"postinstall": "electron-rebuild",
"generate:machine-api": "npx openapi-typescript ./openapi/machine-api.json -o src/lib/machine-api.d.ts",
"tron:start": "electron-forge start",
"tronb:vite:dev": "vite build -c vite.main.config.ts --mode=development && vite build -c vite.preload.config.ts --mode=development && vite build -c vite.renderer.config.ts --mode=development",
"tronb:vite:prod": "vite build -c vite.main.config.ts && vite build -c vite.preload.config.ts && vite build -c vite.renderer.config.ts",
"tronb:package:dev": "npm run tronb:vite:dev && electron-builder --config electron-builder.yml",
"tronb:package:prod": "npm run tronb:vite:prod && electron-builder --config electron-builder.yml --publish always",
"test-setup": "npm install && npm run build:wasm",
"test": "vitest --mode=development",
"test:unit": "vitest run --mode=development --project=unit --sequence.shuffle",
"test:integration": "vitest run --mode=development --project=integration --sequence.shuffle",
"test:snapshots": "cross-env TARGET=web NODE_ENV=development playwright test --config=playwright.config.ts --grep=@snapshot",
"test:e2e:kcl": "(cd rust && just test && just lint)",
"test:e2e:web": "cross-env TARGET=web NODE_ENV=development playwright test --config=playwright.config.ts --grep=@web --project=\"Google Chrome\"",
"test:e2e:desktop": "cross-env TARGET=desktop playwright test --config=playwright.electron.config.ts --grep=@desktop",
"test:e2e:desktop:local": "cross-env TARGET=desktop npm run tronb:vite:dev && playwright test --config=playwright.electron.config.ts --grep=@desktop --grep-invert=\"$(curl --silent https://https://test-analysis-bot.corp.zoo.dev/projects/KittyCAD/modeling-app/tests/disabled/regex)\"",
"test:e2e:desktop:local-engine": "cross-env TARGET=desktop npm run tronb:vite:dev && playwright test --config=playwright.electron.config.ts --grep=@desktop --grep-invert=\"@skipLocalEngine\" --grep-invert=\"$(curl --silent https://https://test-analysis-bot.corp.zoo.dev/projects/KittyCAD/modeling-app/tests/disabled/regex)\""
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/preset-env": "^7.26.9",
"@babel/preset-react": "^7.27.1",
"@biomejs/biome": "^1.9.4",
"@electron-forge/cli": "^7.10.2",
"@electron-forge/plugin-fuses": "^7.8.0",
"@electron-forge/plugin-vite": "^7.8.0",
"@electron/fuses": "^2.0.0",
"@electron/notarize": "^2.5.0",
"@eslint/compat": "^2.0.1",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@iarna/toml": "^2.2.5",
"@lezer/generator": "^1.7.3",
"@nabla/vite-plugin-eslint": "^2.0.6",
"@playwright/test": "^1.57.0",
"@preact/signals-react-transform": "^0.6.0",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^15.0.7",
"@types/hammerjs": "^2.0.46",
"@types/isomorphic-fetch": "^0.0.39",
"@types/minimist": "^1.2.5",
"@types/node": "^22.14.1",
"@types/pixelmatch": "^5.2.6",
"@types/pngjs": "^6.0.4",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@types/react-modal": "^3.16.3",
"@types/three": "^0.181.0",
"@types/ua-parser-js": "^0.7.39",
"@types/uuid": "^9.0.8",
"@types/wicg-file-system-access": "^2023.10.7",
"@types/ws": "^8.18.1",
"@types/yargs": "^17.0.35",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/web-worker": "^3.1.2",
"@xstate/cli": "^0.5.17",
"autoprefixer": "^10.4.23",
"babel-preset-vite": "^1.1.3",
"cross-env": "^10.1.0",
"dpdm": "^3.14.0",
"electron": "^40.0.0",
"electron-builder": "^26.8.1",
"eslint": "^9.39.2",
"eslint-plugin-css-modules": "^2.12.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-perf": "^3.3.3",
"eslint-plugin-suggest-no-throw": "^1.0.0",
"eslint-plugin-testing-library": "^7.13.6",
"eslint-plugin-vitest": "^0.5.4",
"happy-dom": "^20.0.7",
"http-server": "^14.1.1",
"husky": "^9.1.7",
"msw": "^2.12.7",
"node-fetch": "^3.3.2",
"openapi-typescript": "^7.6.1",
"pixelmatch": "^5.3.0",
"pngjs": "^7.0.0",
"postcss": "^8.5.6",
"postinstall-postinstall": "^2.1.0",
"setimmediate": "^1.0.5",
"tailwindcss": "^3.4.17",
"ts-node": "^10.0.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.48.1",
"vite": "^7.3.1",
"vite-plugin-package-version": "^1.1.0",
"vite-plugin-top-level-await": "^1.5.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^4.0.16",
"vitest-webgl-canvas-mock": "^1.1.0",
"ws": "^8.18.3"
}
}