seb-jones.github.io/lua-browser-repl
Basic Lua Interpreter that runs in the web browser.
Emscripten is used to compile the Lua source code into WebAssembly.
Requires Emscripten's emcc
and emmake
commands to be in your PATH
. Building is as simple as:
make
This will download and build the Lua source if it isn't already built, and then build the web page.
A local development server can be started by running:
npm start
This uses the http-server package to launch an HTTP server at http://127.0.0.1:8080
with ./build
as the web root.
Unit tests (using the Mocha runner) can be run with:
npm test
Alternatively they can be run in file-watching mode with:
npm run test:watch
End-to-end tests are implemented using Cypress, which can be run using:
npm run cypress:open
CC0 SVG taken from SVG Repo to make the Favicon.