![npm](https://img.shields.io/npm/v/scalajs-starter.svg)
[![Scala.js](https://www.scala-js.org/assets/badges/scalajs-0.6.17.svg)](https://www.scala-js.org)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/konradst/scalajs-starter.svg)
![GitHub repo size](https://img.shields.io/github/repo-size/konradst/scalajs-starter.svg)
![CircleCI](https://img.shields.io/circleci/build/github/konradst/scalajs-starter.svg)
![GitHub issues](https://img.shields.io/github/issues/konradst/scalajs-starter.svg)
![GitHub pull requests](https://img.shields.io/github/issues-pr/konradst/scalajs-starter.svg)
![GitHub last commit](https://img.shields.io/github/last-commit/konradst/scalajs-starter.svg)
![GitHub](https://img.shields.io/github/license/konradst/scalajs-starter.svg)

[![CircleCI](https://circleci.com/gh/konradst/scalajs-starter.svg?style=svg)](https://circleci.com/gh/konradst/scalajs-starter)

![GitHub followers](https://img.shields.io/github/followers/konradst.svg?style=social)
![Twitter Follow](https://img.shields.io/twitter/follow/konradst1.svg?style=social)

# 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