Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including scalajs-starter with all npm packages installed. Try it out:

var scalajsStarter = require("scalajs-starter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

scalajs-starter v1.0.9

Scala.js starter

npm Scala.js GitHub code size in bytes GitHub repo size CircleCI GitHub issues GitHub pull requests GitHub last commit GitHub

CircleCI

GitHub followers Twitter Follow

scalajs-starter

Installation

  • install sbt with instructions from https://www.scala-sbt.org/1.x/docs/Setup.html
  • npm install scalajs-starter

Usage

  • build Scala to JavaScript
    npm run build
    
  • build & execute script
    npm start
    
  • test
    npm test
    
  • clean build folder
    npm run clean
    
  • run VanillaJS example
    npm run example-vanillajs
    

Features

  • Scala.js skeleton (to be used & replaced by CLI)
  • sbt v. 1.2.8
  • Scala v. 2.12.8
  • Scala.js v. 0.6.28 (git tag 1.0.6)
  • Scala.js v. 1.0.0-M8
  • source maps

1.0.9

  • fix: use js.Dynamic.global.global instead of reassigning globalThis to custom context (affects VanillaJS examples)

For complete changelog go to https://github.com/konradst/scalajs-starter/blob/master/CHANGELOG.md

Roadmap

  • module support: ES, CommonJS
  • interactive build
  • npx CLI
  • add another VanillaJS example (alternative without assigning to globalThis)

For complete roadmap go to https://github.com/konradst/scalajs-starter/blob/master/ROADMAP.md

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free