- Notifications
You must be signed in to change notification settings - Fork37
Commit34d9402
Unify selfhost browser demo to use bundled ruby2js.mjs
- Update browser_demo.html and docs selfhost index.html to use simple `import { convert } from './ruby2js.mjs'` pattern- Update docs/Rakefile to build and copy unified ruby2js.mjs bundle instead of separate walker.mjs, converter.mjs, runtime.mjs files- Add <base href="/demo/selfhost/"> to ensure relative paths work- Update package.json to output bundle to ruby2js.mjs (not dist/)- Add WASI warning suppression to bundle preamble- Update .gitignore and .dockerignore for new output location- Modify runtime.rb for conditional Prism loading (browser vs Node.js)- Modify cli.rb for conditional fs/url imports and guarded entry point- Add shared convert() function to bundle.rb used by both CLI and exportCLI, CI tests, and browser demo now all use the same ruby2js.mjs bundle.🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent2f4e419 commit34d9402
File tree
11 files changed
+140
-708
lines changed- demo/selfhost
- scripts
- docs
- src/demo/selfhost
- lib/ruby2js/selfhost
11 files changed
+140
-708
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
385 | 361 | | |
386 | 362 | | |
387 | 363 | | |
388 | 364 | | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
| 365 | + | |
| 366 | + | |
440 | 367 | | |
| 368 | + | |
441 | 369 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 370 | + | |
463 | 371 | | |
464 | | - | |
| 372 | + | |
465 | 373 | | |
466 | 374 | | |
467 | 375 | | |
| |||
470 | 378 | | |
471 | 379 | | |
472 | 380 | | |
473 | | - | |
| 381 | + | |
474 | 382 | | |
475 | 383 | | |
476 | | - | |
| 384 | + | |
| 385 | + | |
477 | 386 | | |
478 | 387 | | |
479 | 388 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments
Comments
(0)