Skip to content

eliot-akira/zig-playground

 
 

Repository files navigation

Zig Playground

This is a fork of zigtools/playground.

Demo · Git repo

Changes include:

  • Build a static siste hosted on GitHub Pages
  • Deploy using GitHub Actions
  • Redesign interface and improve editor with syntax highlight
  • Bundle built WASM files

Prepare

  • Compile zig compiler for wasm32-wasi and place zig_release.wasm in src

  • Compile zls for wasm32-wasi and place zls.wasm in src

    Or download zls-wasm32-wasi.tar.xz from releases.

  • Place zig.tar.gz from the website in src

    If you've downloaded Zig and built from source following zig-wasm.md, you can also use this command:

    tar -C /path/to/zig -cz lib/std > src/zig.tar.gz

Develop

Install dependencies.

npm install

Serve local site - Build assets, watch for changes. Press CTRL + C to stop.

npm run serve

Build for production.

npm run build

About

Zig compiler and language server in the browser

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 90.1%
  • SCSS 4.9%
  • JavaScript 3.8%
  • HTML 1.2%