From 58c94d3f8d7ec0a3209c9199c24a5e8c817e8550 Mon Sep 17 00:00:00 2001 From: Thomas Vultura Date: Sun, 1 Mar 2020 10:52:29 +0100 Subject: [PATCH] update to scalajs 1.0.0 --- build.sbt | 2 +- project/build.properties | 2 +- project/giter8.sbt | 1 - src/main/g8/default.properties | 10 +++++----- src/main/g8/src/main/scala/MainApp.scala | 6 ++---- 5 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 project/giter8.sbt diff --git a/build.sbt b/build.sbt index 19a303f..bed37e8 100644 --- a/build.sbt +++ b/build.sbt @@ -4,7 +4,7 @@ lazy val root = (project in file(".")). settings( inThisBuild(List( - scalaVersion := "2.12.6" + scalaVersion := "2.13.1" )), name := "scala-js.g8", test in Test := { diff --git a/project/build.properties b/project/build.properties index 64cf32f..a919a9b 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.1.4 +sbt.version=1.3.8 diff --git a/project/giter8.sbt b/project/giter8.sbt deleted file mode 100644 index f87d842..0000000 --- a/project/giter8.sbt +++ /dev/null @@ -1 +0,0 @@ -addSbtPlugin("org.foundweekends.giter8" %% "sbt-giter8" % "0.11.0-M3") diff --git a/src/main/g8/default.properties b/src/main/g8/default.properties index 95d71d8..d659d90 100644 --- a/src/main/g8/default.properties +++ b/src/main/g8/default.properties @@ -3,8 +3,8 @@ description = Creates an empty Scala.js project. name = my-scala-js organization = com.example version = 0.1-SNAPSHOT -scala_version = 2.12.6 -sbt_version = 1.1.4 -scalajs_version = 0.6.22 -scalajs_dom_version = 0.9.5 -scalatest_version = 3.0.5 +scala_version = 2.13.1 +sbt_version = 1.3.8 +scalajs_version = 1.0.0 +scalajs_dom_version = 1.0.0 +scalatest_version = 3.1.1 diff --git a/src/main/g8/src/main/scala/MainApp.scala b/src/main/g8/src/main/scala/MainApp.scala index 9ec6a61..240a94e 100644 --- a/src/main/g8/src/main/scala/MainApp.scala +++ b/src/main/g8/src/main/scala/MainApp.scala @@ -1,11 +1,9 @@ -import scala.scalajs.js.JSApp - import org.scalajs.dom import dom.{ document, window } -object MainApp extends JSApp { +object MainApp{ - def main(): Unit = { + def main(args: Array[String]): Unit = { println("Starting '$name$'...") val p = document.createElement("p")