-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
56 lines (56 loc) · 2.96 KB
/
Copy pathpackage.json
File metadata and controls
56 lines (56 loc) · 2.96 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
{
"name": "web-host",
"private": true,
"version": "0.0.0",
"type": "module",
"description": "Web host for Terminal REPL with plugin system (using WebAssembly Component Model)",
"scripts": {
"predev": "npm run prebuild",
"predev:debug": "npm run wit-types && just build-plugins && just build-repl-logic-guest && just web-host-prepare-wasm-files-debug && npm run wasm:transpile",
"dev": "vite --host",
"dev:debug": "vite --host",
"prebuild": "npm run wit-types && just build-plugins-release && just build-repl-logic-guest-release && just web-host-prepare-wasm-files-release && npm run wasm:transpile && npm run prepareVirtualFs",
"build": "tsc -b && vite build",
"preview": "vite preview --host",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"list-public-wasm-names": "ls -1 public/plugins/*.wasm|sed 's/.wasm//'|sed 's#public/plugins/##'",
"typecheck": "tsc --noEmit -p tsconfig.app.json",
"prepareVirtualFs": "node --experimental-strip-types --no-warnings ./clis/prepareFilesystem.ts --path fixtures/filesystem --format ts > src/wasm/virtualFs.ts; biome format --write ./src/wasm/virtualFs.ts",
"test:e2e:all": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:all:preview": "BASE_URL=http://localhost:4173/webassembly-component-model-experiments npm run test:e2e:all",
"test:e2e:ui:preview": "BASE_URL=http://localhost:4173/webassembly-component-model-experiments npm run test:e2e:ui",
"test:e2e:report": "playwright show-report",
"test:e2e:like-in-ci": "CI=true GITHUB_ACTIONS=true WAIT_FOR_SERVER_AT_URL=http://localhost:4173/webassembly-component-model-experiments/ npm run test:e2e:all:preview",
"wasm:transpile": "npm run list-public-wasm-names --silent|xargs -I {} jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/{}.wasm -o ./src/wasm/generated/{}/transpiled",
"wit-types:host-api": "jco types --world-name host-api --out-dir ./src/types/generated ../../crates/pluginlab/wit",
"wit-types:plugin-api": "jco types --world-name plugin-api --out-dir ./src/types/generated ../../crates/pluginlab/wit",
"wit-types": "npm run wit-types:clean && npm run wit-types:host-api && npm run wit-types:plugin-api && biome format --write ./src/types/generated",
"wit-types:clean": "rm -rf ./src/types/generated"
},
"dependencies": {
"clsx": "^2.1.1",
"lucide-react": "^0.525.0",
"qrcode.react": "^4.2.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwind-merge": "^3.3.1",
"zustand": "^5.0.6"
},
"devDependencies": {
"@bytecodealliance/jco": "^1.13.2",
"@playwright/test": "^1.54.1",
"@tailwindcss/vite": "^4.1.11",
"@types/node": "^24.0.4",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@vitejs/plugin-react": "^4.5.2",
"commander": "^12.1.0",
"globals": "^16.2.0",
"tailwindcss": "^4.1.11",
"typescript": "~5.8.3",
"typescript-eslint": "^8.34.1",
"vite": "^7.0.0"
}
}