GithubHelp home page GithubHelp logo

wqzhang / scala-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scala-js/scala-js

0.0 1.0 0.0 431 KB

Scala.js, a JavaScript backend for Scala

Home Page: http://lampwww.epfl.ch/~doeraene/scala-js/

scala-js's Introduction

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.

scala-js's People

Contributors

sjrd avatar

Watchers

Wen Qiang Zhang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.