-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
214 lines (214 loc) · 13.6 KB
/
Copy pathpackage.json
File metadata and controls
214 lines (214 loc) · 13.6 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
{
"name": "wasm-idle",
"version": "1.0.0",
"description": "A simple web app to run code in the browser",
"license": "MIT",
"type": "module",
"workspaces": [
"packages/*",
"runtimes/*",
"apps/*"
],
"scripts": {
"dev": "pnpm run prepare:app && vite dev",
"build:preview": "pnpm run prepare:app && vite build",
"build": "pnpm run prepare:app && vite build && pnpm run package:root",
"workspace:list": "node scripts/workspace.mjs list",
"workspace:build": "node scripts/workspace.mjs run build --if-present",
"workspace:check": "node scripts/workspace.mjs run check --if-present",
"build:runtimes": "node scripts/workspace.mjs run build --group runtimes --if-present",
"check:runtimes": "node scripts/workspace.mjs run check --group runtimes --if-present",
"build:packages": "node scripts/workspace.mjs run build --group packages --if-present",
"check:packages": "pnpm run build:packages && node scripts/workspace.mjs run check --group packages --if-present",
"build:publish-deps": "node scripts/workspace.mjs run build --public --if-present",
"prepare:app": "pnpm run build:publish-deps",
"preview": "vite preview",
"probe:go-browser": "node scripts/probe-go-browser.mjs",
"probe:ocaml-browser": "node scripts/probe-ocaml-browser.mjs",
"probe:rust-browser": "node scripts/probe-rust-browser.mjs",
"probe:tinygo-browser": "node scripts/probe-tinygo-browser.mjs",
"probe:tinygo-browser:static": "node scripts/probe-tinygo-browser.mjs",
"sync:pyodide": "node scripts/sync-pyodide.mjs",
"test:browser:clang-stdin": "WASM_IDLE_RUN_REAL_BROWSER_CLANG_STDIN=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
"test:browser:fortran": "WASM_IDLE_RUN_REAL_BROWSER_FORTRAN=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
"test:browser:cobol": "WASM_IDLE_RUN_REAL_BROWSER_COBOL=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
"test:browser:objectivec": "WASM_IDLE_RUN_REAL_BROWSER_OBJECTIVEC=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
"test:browser:objectivecxx": "WASM_IDLE_RUN_REAL_BROWSER_OBJECTIVECXX=1 pnpm exec vitest run src/lib/playground/objectivecxx.playwright.test.ts",
"test:browser:debug": "WASM_IDLE_RUN_REAL_BROWSER_DEBUG=1 pnpm exec vitest run src/lib/playground/debug.playwright.test.ts",
"test:browser:debug:lldb": "WASM_IDLE_RUN_REAL_BROWSER_DEBUG=1 WASM_IDLE_REQUIRE_LLDB_DEBUG=1 WASM_IDLE_DEBUG_BROWSER_LANGUAGES=C,CPP,RUST pnpm exec vitest run src/lib/playground/debug.playwright.test.ts",
"test:browser:go": "WASM_IDLE_RUN_REAL_BROWSER_GO=1 pnpm exec vitest run src/lib/playground/go.playwright.test.ts",
"test:browser:d": "WASM_IDLE_RUN_REAL_BROWSER_D=1 pnpm exec vitest run src/lib/playground/d.playwright.test.ts",
"test:browser:stdin": "WASM_IDLE_RUN_REAL_BROWSER_STDIN=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
"test:browser:lisp": "WASM_IDLE_RUN_REAL_BROWSER_LISP=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
"test:browser:ocaml": "WASM_IDLE_RUN_REAL_BROWSER_OCAML=1 pnpm exec vitest run src/lib/playground/ocaml.playwright.test.ts",
"test:browser:octave": "WASM_IDLE_RUN_REAL_BROWSER_OCTAVE=1 pnpm exec vitest run src/lib/playground/octave.playwright.test.ts",
"test:browser:prolog": "WASM_IDLE_RUN_REAL_BROWSER_PROLOG=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:gleam": "WASM_IDLE_RUN_REAL_BROWSER_GLEAM=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:perl": "WASM_IDLE_RUN_REAL_BROWSER_PERL=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:tcl": "WASM_IDLE_RUN_REAL_BROWSER_TCL=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:awk": "WASM_IDLE_RUN_REAL_BROWSER_AWK=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:pascal": "WASM_IDLE_RUN_REAL_BROWSER_PASCAL=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:forth": "WASM_IDLE_RUN_REAL_BROWSER_FORTH=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:j": "WASM_IDLE_RUN_REAL_BROWSER_J=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:bqn": "WASM_IDLE_RUN_REAL_BROWSER_BQN=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:janet": "WASM_IDLE_RUN_REAL_BROWSER_JANET=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:julia": "WASM_IDLE_RUN_REAL_BROWSER_JULIA=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:nim": "WASM_IDLE_RUN_REAL_BROWSER_NIM=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:browser:bash": "WASM_IDLE_RUN_REAL_BROWSER_BASH=1 pnpm exec vitest run src/lib/playground/bash.playwright.test.ts",
"test:browser:clojurescript": "WASM_IDLE_RUN_REAL_BROWSER_CLOJURESCRIPT=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
"test:unit:swift": "pnpm exec vitest run src/lib/playground/swift.test.ts",
"test:browser:playwright": "WASM_IDLE_RUN_REAL_BROWSER_RUST=1 pnpm exec vitest run src/lib/playground/rust.playwright.test.ts",
"test:browser:tinygo": "WASM_IDLE_RUN_REAL_BROWSER_TINYGO=1 pnpm exec vitest run src/lib/playground/tinygo.playwright.test.ts",
"test:browser:languages:full": "node scripts/run-all-language-browser-tests.mjs",
"test:browser:audit:full": "node scripts/run-all-language-browser-tests.mjs --include-compressed-assets --include-lsp-full",
"prepare:test-assets": "node scripts/prepare-browser-test-assets.mjs",
"sync:runtime": "node scripts/sync-runtime.mjs",
"sync:runtimes": "node scripts/sync-runtime.mjs all",
"sync:wasm-php": "node scripts/sync-wasm-php.mjs",
"verify:wasm-php": "node scripts/verify-wasm-php-assets.mjs",
"sync:wasm-clang": "node scripts/sync-wasm-clang.mjs",
"sync:wasm-fortran": "node scripts/sync-runtime.mjs wasm-fortran",
"sync:wasm-debug": "node scripts/sync-wasm-debug.mjs",
"sync:wasm-objectivec": "node scripts/sync-wasm-objectivec.mjs",
"sync:wasm-cobol": "node scripts/sync-runtime.mjs wasm-cobol",
"sync:wasm-of-js-of-ocaml": "node scripts/sync-runtime.mjs wasm-of-js-of-ocaml",
"sync:wasm-dotnet": "node scripts/sync-runtime.mjs wasm-dotnet",
"sync:wasm-d": "node scripts/sync-runtime.mjs wasm-d",
"sync:wasm-go": "node scripts/sync-runtime.mjs wasm-go",
"sync:wasm-haskell": "node scripts/sync-runtime.mjs wasm-haskell",
"sync:wasm-rust": "node scripts/sync-runtime.mjs wasm-rust",
"sync:wasm-typescript": "node scripts/sync-runtime.mjs wasm-typescript",
"sync:wasm-wat": "node scripts/sync-runtime.mjs wasm-wat",
"sync:wasm-lua": "node scripts/sync-runtime.mjs wasm-lua",
"sync:wasm-zig": "node scripts/sync-runtime.mjs wasm-zig",
"sync:wasm-lisp": "node scripts/sync-runtime.mjs wasm-lisp",
"sync:wasm-ruby": "node scripts/sync-runtime.mjs wasm-ruby",
"sync:wasm-tinygo": "node scripts/sync-runtime.mjs wasm-tinygo",
"sync:wasm-swift": "node scripts/sync-runtime.mjs wasm-swift",
"sync:wasm-elixir": "node scripts/sync-runtime.mjs wasm-elixir",
"sync:wasm-octave": "node scripts/sync-runtime.mjs wasm-octave",
"sync:wasm-prolog": "node scripts/sync-runtime.mjs wasm-prolog",
"sync:wasm-gleam": "node scripts/sync-runtime.mjs wasm-gleam",
"sync:wasm-perl": "node scripts/sync-runtime.mjs wasm-perl",
"sync:wasm-tcl": "node scripts/sync-runtime.mjs wasm-tcl",
"sync:wasm-awk": "node scripts/sync-runtime.mjs wasm-awk",
"sync:wasm-pascal": "node scripts/sync-runtime.mjs wasm-pascal",
"sync:wasm-forth": "node scripts/sync-runtime.mjs wasm-forth",
"sync:wasm-j": "node scripts/sync-runtime.mjs wasm-j",
"sync:wasm-bqn": "node scripts/sync-runtime.mjs wasm-bqn",
"sync:wasm-janet": "node scripts/sync-runtime.mjs wasm-janet",
"sync:wasm-julia": "node scripts/sync-runtime.mjs wasm-julia",
"sync:wasm-nim": "node scripts/sync-runtime.mjs wasm-nim",
"sync:wasm-bash": "node scripts/sync-runtime.mjs wasm-bash",
"sync:wasm-clojurescript": "node scripts/sync-runtime.mjs wasm-clojurescript",
"sync:webr": "node scripts/sync-runtime.mjs webr",
"compress:static-runtimes": "node scripts/compress-static-runtime-assets.mjs static",
"compress:build-runtimes": "node scripts/compress-static-runtime-assets.mjs build",
"layer:static-runtimes": "node scripts/build-layered-runtime-assets.mjs static",
"asset:sizes": "node scripts/static-asset-sizes.mjs report",
"check:asset-sizes": "node scripts/static-asset-sizes.mjs check",
"build:page-runtimes": "node scripts/prepare-page-runtimes.mjs",
"build:static-runtime-modules": "node scripts/build-static-runtime-modules.mjs",
"support:matrix": "node scripts/support-matrix.mjs write",
"check:support-matrix": "node scripts/support-matrix.mjs check",
"sync:page-runtimes": "pnpm run sync:pyodide && pnpm run sync:webr && pnpm run sync:wasm-of-js-of-ocaml && pnpm run sync:wasm-typescript && pnpm run sync:wasm-octave && pnpm run sync:wasm-prolog && pnpm run sync:wasm-gleam && pnpm run sync:wasm-perl && pnpm run sync:wasm-tcl && pnpm run sync:wasm-awk && pnpm run sync:wasm-pascal && pnpm run sync:wasm-forth && pnpm run sync:wasm-j && pnpm run sync:wasm-bqn && pnpm run sync:wasm-janet && pnpm run sync:wasm-julia && pnpm run sync:wasm-nim && pnpm run sync:wasm-ruby && pnpm run sync:wasm-bash && pnpm run sync:wasm-clojurescript",
"page:build": "pnpm run build:page-runtimes && pnpm run sync:page-runtimes && pnpm run build:static-runtime-modules && pnpm run layer:static-runtimes && pnpm run compress:static-runtimes && pnpm run build && pnpm run compress:build-runtimes",
"package:root": "svelte-kit sync && node scripts/clean-package-output.mjs && svelte-package --tsconfig ./tsconfig.package.json && publint",
"package": "pnpm run build:publish-deps && pnpm run package:root",
"prepack": "pnpm run package",
"verify:package": "node scripts/verify-package.mjs",
"test": "pnpm run build:publish-deps && vitest run",
"test:lsp:browser:smoke": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 WASM_IDLE_LSP_BROWSER_LANGUAGES=CPP pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:lsp:browser:gleam:csp": "WASM_IDLE_STRICT_CSP=1 WASM_IDLE_RUN_REAL_BROWSER_LSP=1 WASM_IDLE_LSP_BROWSER_LANGUAGES=GLEAM pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:lsp:browser:cpp-python": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 WASM_IDLE_LSP_BROWSER_GROUPS=cpp-python pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:lsp:browser:document": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 WASM_IDLE_LSP_BROWSER_GROUPS=document pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:lsp:browser:runtime-small": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 WASM_IDLE_LSP_BROWSER_GROUPS=runtime-small pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:lsp:browser:runtime-heavy": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 WASM_IDLE_LSP_BROWSER_GROUPS=runtime-heavy pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:lsp:browser:full": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 pnpm exec vitest run src/routes/monaco-lsp.playwright.test.ts",
"test:watch": "vitest",
"check": "pnpm run build:publish-deps && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "pnpm run build:publish-deps && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"page": "pnpm run page:build && node gh-pages.js"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@sveltejs/adapter-auto": "^7.0.1",
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.57.1",
"@sveltejs/package": "^2.5.7",
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"@testing-library/svelte": "^5.3.1",
"@testing-library/user-event": "^14.6.1",
"@assemblyscript/loader": "0.28.17",
"@duckdb/duckdb-wasm": "1.33.1-dev45.0",
"@live-codes/gleam-precompiled": "0.5.0",
"@ruby/3.4-wasm-wasi": "2.9.3-2.9.4",
"@ruby/wasm-wasi": "2.9.3-2.9.4",
"@seorii/monaco": "0.1.1",
"@swmansion/popcorn": "0.2.2",
"@types/node": "^25.6.0",
"@types/sql.js": "^1.4.11",
"@typescript-eslint/eslint-plugin": "^8.58.2",
"@typescript-eslint/parser": "^8.58.2",
"@wasm-idle/debug": "workspace:*",
"@wasm-idle/lsp": "workspace:*",
"@wasm-idle/terminal": "workspace:*",
"@wasmer/sdk": "0.9.0",
"assemblyscript": "0.28.17",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.17.0",
"eslint-plugin-svelte3": "^4.0.0",
"gh-pages": "^6.3.0",
"globals": "^17.5.0",
"jsdom": "^29.0.2",
"monaco-editor": "^0.55.1",
"playwright-core": "^1.59.1",
"prettier": "^3.8.3",
"prettier-plugin-svelte": "^3.5.1",
"publint": "^0.3.18",
"pyodide": "0.29.3",
"sql.js": "^1.14.1",
"svelte": "^5.55.4",
"svelte-check": "^4.4.6",
"swipl-wasm": "8.0.1",
"tslib": "^2.8.1",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.2",
"vite": "^8.0.8",
"vitest": "^4.1.4",
"waforth": "0.20.1",
"webr": "0.6.0"
},
"dependencies": {
"@bjorn3/browser_wasi_shim": "^0.4.2",
"@wasm-idle/core": "workspace:*",
"@wasm-idle/llvm-core": "workspace:*",
"fflate": "0.8.3"
},
"files": [
"dist",
"!dist/**/*.test.*",
"!dist/**/*.spec.*"
],
"publishConfig": {
"tag": "latest"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
}