Skip to content

Commit 45fce39

Browse files
committed
Add a Scala.js example.
1 parent 228b36d commit 45fce39

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

scalajs/ex1/build.sbt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
enablePlugins(ScalaJSPlugin)
2+
3+
name := "Scala.js Tutorial"
4+
scalaVersion := "2.12.6" // or any other Scala version >= 2.10.2
5+
6+
// This is an application with a main method
7+
scalaJSUseMainModuleInitializer := true

scalajs/ex1/project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.13.17

scalajs/ex1/project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.26")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package tutorial.webapp
2+
3+
object TutorialApp {
4+
def main(args: Array[String]): Unit = {
5+
println("Hello world!")
6+
}
7+
}

0 commit comments

Comments
 (0)