Skip to content

makevoid/opal_raw

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Opal Raw

A very fast opal setup - includes opal browser - uses guard to automatically compile your .js.ruby files as you save them - has opal and opal-browser vendored already in js files.

Open the project in a webserver:

python SimpleHTTPServer 3000

then open a browser at:

http://localhost:3000

Development

install the dependencies

bundle

launch guard:

guard

modify app.rb, save and refresh the browser


extra infos:

build a stdlib module

File.open("math.js", 'w') { |file| file.write(Opal::Builder.build('math')) }

all stdlib modules:

https://github.com/opal/opal/tree/master/stdlib

useful stdlib modules:

  • nodejs (file, dir, kernel, io ...)
  • js (instanceof, typeof, call ...)

About

A very fast opal setup - no sprockets! - includes opal browser - uses guard to automatically compile your .js.rb files as you save them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published