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-wasiand placezig_release.wasminsrc -
Compile zls for
wasm32-wasiand placezls.wasminsrcOr download
zls-wasm32-wasi.tar.xzfrom releases. -
Place
zig.tar.gzfrom the website insrcIf 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 installServe local site - Build assets, watch for changes. Press CTRL + C to stop.
npm run serveBuild for production.
npm run build