This is a fork of zigtools/playground.
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
-
Compile zig compiler for
wasm32-wasi
and placezig_release.wasm
insrc
-
Compile zls for
wasm32-wasi
and placezls.wasm
insrc
Or download
zls-wasm32-wasi.tar.xz
from releases. -
Place
zig.tar.gz
from the website insrc
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
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