ESRuby
This project brings mruby to the browser. It uses emscripten (https://github.com/kripken/emscripten) to compile the mruby source code into JavaScript (ECMAScript) and runs in the browser. It is heavily based off webruby (https://github.com/xxuejie/webruby) but has been adjusted to work with the updates to emscripten and mruby.
How to Install
ESRuby depends on emsdk to provide emscripten and LLVM infrustructure. To try ESRuby, follow these steps:
TODO: instructions will not work yet
- Install emsdk following instructions at here
- Install latest incoming version of emscripten sdk(right now webruby still depends on code from incoming branch of emscripten, once this goes into a release version, we will lock the version for better stability)
- Activate latest incoming version
- Webruby should be able to pick up the correct version of emscripten from emsdk. If not, feel free to create an issue :)
- Install gem
gem install esruby
- Create new project with
esruby new <name>
- Build project with
esruby build [config.rb]
License
This project is distributed under the MIT License. See LICENSE for further details.