This repository contains the code that backs ruby-syntax-tree.github.io. It is an interactive editor that is running Syntax Tree in the background to handle introspecting the underlying syntax tree and formatting. It uses Ruby's WASI bindings to do this all in the browser.
To run the application locally, you should:
bundle installto install the Ruby dependencies.yarn installto install the node dependencies.bundle exec raketo build the.wasmapplication file.yarn serveto start the local development server.- Open a browser at
localhost:8000.
In order to build package using linux you should set the env CI=1 along with the rake execution. CI=1 bundle exec rake
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-syntax-tree/syntax_tree.
The repository is available as open source under the terms of the MIT License.