Skip to content

reese/rubyfmt.run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A web-based playground that runs rubyfmt via WebAssembly in the browser.

Prerequisites

  • Rust
  • Node.js (v18+)
  • Git (for cloning the Emscripten SDK)

The build script will automatically install:

  • Emscripten SDK
  • Rust wasm32-unknown-emscripten target

Building

Run the full build (WASM + web assets):

./build.sh

The built site will be in web/dist/.

Development

After running ./build.sh at least once:

cd web
npm run dev

This starts a dev server with hot reload at http://localhost:5173.

If you change the Rust code, rebuild with ./build.sh

Deployment

Serve the web/dist/ directory with any static file server. The site is fully static with no backend required.

About

A web-based playground for `rubyfmt`

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •