Skip to content
master
Go to file
Code
This branch is 5804 commits behind scala-js:master.

Latest commit

 

Git stats

Files

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

README.md

Scala.js, a JavaScript backend for Scala

This project aims at providing a JavaScript backend for Scala.

Mailing list

https://groups.google.com/forum/?fromgroups#!forum/scala-js

Get it

Get the code with git. Beware that this repo contains two submodules, which you need to clone too. So after cloning this repo, cd into it and do:

$ git submodule init
$ git submodule update

Test it

Build is done with sbt. Use

sbt> package-js

to compile the compiler and the standard library. Afterwards, you can compile the example applications:

sbt> examples/package-js

You can "execute" the example applications by opening their respective HTML files in your favorite browser.

Currently, two examples are provided:

  • examples/helloworld/helloworld.html, saying Hello World in four different ways (using DOM or jQuery, and using the untyped or typed interface to JavaScript).
  • examples/reversi/reversi.html, an implementation of a Reversi game. Note that it uses the HTML5 Canvas element, so it won't work with Internet Explorer 8 or below.

License

Scala.js is distributed under the Scala License.

About

Scala.js, a JavaScript backend for Scala

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.