|
1 | 1 | { |
2 | | - "name": "web-host", |
3 | | - "private": true, |
4 | | - "version": "0.0.0", |
5 | | - "type": "module", |
6 | | - "description": "Web host for Terminal REPL with plugin system (using WebAssembly Component Model)", |
7 | | - "scripts": { |
8 | | - "predev": "npm run prebuild", |
9 | | - "predev:debug": "npm run wit-types && just build-plugins && just build-repl-logic-guest && npm run prepareWasmFiles:debug && npm run wasm:transpile", |
10 | | - "dev": "vite --host", |
11 | | - "dev:debug": "vite --host", |
12 | | - "prebuild": "npm run wit-types && just build-plugins-release && just build-repl-logic-guest-release && npm run prepareWasmFiles:release && npm run wasm:transpile && npm run prepareVirtualFs", |
13 | | - "build": "tsc -b && vite build", |
14 | | - "preview": "vite preview --host", |
15 | | - "lint": "biome check .", |
16 | | - "lint:fix": "biome check --write .", |
17 | | - "typecheck": "tsc --noEmit -p tsconfig.app.json", |
18 | | - "prepareWasmFiles:release": "node --experimental-strip-types --no-warnings ./clis/prepareWasmFiles.ts --mode release", |
19 | | - "prepareWasmFiles:debug": "node --experimental-strip-types --no-warnings ./clis/prepareWasmFiles.ts --mode debug", |
20 | | - "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", |
21 | | - "wasm:transpile:plugin-echo": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_echo.wasm -o ./src/wasm/generated/plugin_echo/transpiled", |
22 | | - "wasm:transpile:plugin-weather": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_weather.wasm -o ./src/wasm/generated/plugin_weather/transpiled", |
23 | | - "wasm:transpile:plugin-greet": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_greet.wasm -o ./src/wasm/generated/plugin_greet/transpiled", |
24 | | - "wasm:transpile:plugin-ls": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_ls.wasm -o ./src/wasm/generated/plugin_ls/transpiled", |
25 | | - "wasm:transpile:plugin-cat": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_cat.wasm -o ./src/wasm/generated/plugin_cat/transpiled", |
26 | | - "wasm:transpile:repl-logic-guest": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/repl_logic_guest.wasm -o ./src/wasm/generated/repl_logic_guest/transpiled", |
27 | | - "wasm:transpile": "npm run wasm:transpile:plugin-echo && npm run wasm:transpile:plugin-weather && npm run wasm:transpile:plugin-greet && npm run wasm:transpile:plugin-ls && npm run wasm:transpile:plugin-cat && npm run wasm:transpile:repl-logic-guest", |
28 | | - "wit-types:host-api": "jco types --world-name host-api --out-dir ./src/types/generated ../../crates/pluginlab/wit", |
29 | | - "wit-types:plugin-api": "jco types --world-name plugin-api --out-dir ./src/types/generated ../../crates/pluginlab/wit", |
30 | | - "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", |
31 | | - "wit-types:clean": "rm -rf ./src/types/generated" |
32 | | - }, |
33 | | - "dependencies": { |
34 | | - "clsx": "^2.1.1", |
35 | | - "lucide-react": "^0.525.0", |
36 | | - "qrcode.react": "^4.2.0", |
37 | | - "react": "^19.1.0", |
38 | | - "react-dom": "^19.1.0", |
39 | | - "tailwind-merge": "^3.3.1", |
40 | | - "zustand": "^5.0.6" |
41 | | - }, |
42 | | - "devDependencies": { |
43 | | - "@bytecodealliance/jco": "^1.11.2", |
44 | | - "@tailwindcss/vite": "^4.1.11", |
45 | | - "@types/node": "^24.0.4", |
46 | | - "@types/react": "^19.1.8", |
47 | | - "@types/react-dom": "^19.1.6", |
48 | | - "@vitejs/plugin-react": "^4.5.2", |
49 | | - "commander": "^12.1.0", |
50 | | - "globals": "^16.2.0", |
51 | | - "tailwindcss": "^4.1.11", |
52 | | - "typescript": "~5.8.3", |
53 | | - "typescript-eslint": "^8.34.1", |
54 | | - "vite": "^7.0.0" |
55 | | - } |
| 2 | + "name": "web-host", |
| 3 | + "private": true, |
| 4 | + "version": "0.0.0", |
| 5 | + "type": "module", |
| 6 | + "description": "Web host for Terminal REPL with plugin system (using WebAssembly Component Model)", |
| 7 | + "scripts": { |
| 8 | + "predev": "npm run prebuild", |
| 9 | + "predev:debug": "npm run wit-types && just build-plugins && just build-repl-logic-guest && npm run prepareWasmFiles:debug && npm run wasm:transpile", |
| 10 | + "dev": "vite --host", |
| 11 | + "dev:debug": "vite --host", |
| 12 | + "prebuild": "npm run wit-types && just build-plugins-release && just build-repl-logic-guest-release && npm run prepareWasmFiles:release && npm run wasm:transpile && npm run prepareVirtualFs", |
| 13 | + "build": "tsc -b && vite build", |
| 14 | + "preview": "vite preview --host", |
| 15 | + "lint": "biome check .", |
| 16 | + "lint:fix": "biome check --write .", |
| 17 | + "typecheck": "tsc --noEmit -p tsconfig.app.json", |
| 18 | + "prepareWasmFiles:release": "node --experimental-strip-types --no-warnings ./clis/prepareWasmFiles.ts --mode release", |
| 19 | + "prepareWasmFiles:debug": "node --experimental-strip-types --no-warnings ./clis/prepareWasmFiles.ts --mode debug", |
| 20 | + "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", |
| 21 | + "test:e2e:all": "playwright test", |
| 22 | + "test:e2e:ui": "playwright test --ui", |
| 23 | + "test:e2e:all:preview": "BASE_URL=http://localhost:4173/webassembly-component-model-experiments npm run test:e2e:all", |
| 24 | + "test:e2e:ui:preview": "BASE_URL=http://localhost:4173/webassembly-component-model-experiments npm run test:e2e:ui", |
| 25 | + "test:e2e:report": "playwright show-report", |
| 26 | + "wasm:transpile:plugin-echo": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_echo.wasm -o ./src/wasm/generated/plugin_echo/transpiled", |
| 27 | + "wasm:transpile:plugin-weather": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_weather.wasm -o ./src/wasm/generated/plugin_weather/transpiled", |
| 28 | + "wasm:transpile:plugin-greet": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_greet.wasm -o ./src/wasm/generated/plugin_greet/transpiled", |
| 29 | + "wasm:transpile:plugin-ls": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_ls.wasm -o ./src/wasm/generated/plugin_ls/transpiled", |
| 30 | + "wasm:transpile:plugin-cat": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/plugin_cat.wasm -o ./src/wasm/generated/plugin_cat/transpiled", |
| 31 | + "wasm:transpile:repl-logic-guest": "jco transpile --no-nodejs-compat --no-namespaced-exports public/plugins/repl_logic_guest.wasm -o ./src/wasm/generated/repl_logic_guest/transpiled", |
| 32 | + "wasm:transpile": "npm run wasm:transpile:plugin-echo && npm run wasm:transpile:plugin-weather && npm run wasm:transpile:plugin-greet && npm run wasm:transpile:plugin-ls && npm run wasm:transpile:plugin-cat && npm run wasm:transpile:repl-logic-guest", |
| 33 | + "wit-types:host-api": "jco types --world-name host-api --out-dir ./src/types/generated ../../crates/pluginlab/wit", |
| 34 | + "wit-types:plugin-api": "jco types --world-name plugin-api --out-dir ./src/types/generated ../../crates/pluginlab/wit", |
| 35 | + "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", |
| 36 | + "wit-types:clean": "rm -rf ./src/types/generated" |
| 37 | + }, |
| 38 | + "dependencies": { |
| 39 | + "clsx": "^2.1.1", |
| 40 | + "lucide-react": "^0.525.0", |
| 41 | + "qrcode.react": "^4.2.0", |
| 42 | + "react": "^19.1.0", |
| 43 | + "react-dom": "^19.1.0", |
| 44 | + "tailwind-merge": "^3.3.1", |
| 45 | + "zustand": "^5.0.6" |
| 46 | + }, |
| 47 | + "devDependencies": { |
| 48 | + "@bytecodealliance/jco": "^1.11.2", |
| 49 | + "@playwright/test": "^1.54.1", |
| 50 | + "@tailwindcss/vite": "^4.1.11", |
| 51 | + "@types/node": "^24.0.4", |
| 52 | + "@types/react": "^19.1.8", |
| 53 | + "@types/react-dom": "^19.1.6", |
| 54 | + "@vitejs/plugin-react": "^4.5.2", |
| 55 | + "commander": "^12.1.0", |
| 56 | + "globals": "^16.2.0", |
| 57 | + "tailwindcss": "^4.1.11", |
| 58 | + "typescript": "~5.8.3", |
| 59 | + "typescript-eslint": "^8.34.1", |
| 60 | + "vite": "^7.0.0" |
| 61 | + } |
56 | 62 | } |
0 commit comments