1- name := " Simple Game"
2- version := " 0.0-SNAPSHOT"
3-
4- // ** Meta data **
5- description := " Simple HTML5 Canvas game ported to Scala.js."
6- startYear := Some (2016 )
7- licenses += (" EUPL v.1.1" , url(" http://joinup.ec.europa.eu/community/eupl/og_page/european-union-public-licence-eupl-v11" ))
8-
9- organization := " nl.amsscala"
10- organizationName := " Amsterdam.scala Meetup Group"
1+ name := " Simple Game"
2+ version := " 0.0"
3+ description := " Simple HTML5 Canvas game ported to Scala.js."
4+ organization := " nl.amsscala"
5+ organizationName := " Amsterdam.scala Meetup Group"
116organizationHomepage := Some (url(" http://www.meetup.com/amsterdam-scala/" ))
12- homepage := Some (url(" http://github.com/amsterdam-scala/Sjs-Full-Window-HTML5-Canvas" ))
7+ homepage := Some (url(" http://github.com/amsterdam-scala/Sjs-Full-Window-HTML5-Canvas" ))
8+ startYear := Some (2016 )
9+ licenses += " EUPL v.1.1" -> url(" http://joinup.ec.europa.eu/community/eupl/og_page/european-union-public-licence-eupl-v11" )
1310
1411// KEEP THIS normalizedName CONSTANTLY THE SAME, otherwise the outputted JS filename will be changed.
15- normalizedName := " main"
16-
12+ normalizedName := " main"
1713
1814// ** Scala dependencies **
1915scalaVersion in ThisBuild := " 2.11.8"
2016
2117libraryDependencies ++= Seq (
22- " be.doeraene" %%% " scalajs-jquery" % " 0.9.0" ,
23- " org.scala-js " %%% " scalajs-dom " % " 0.9.1 " ,
24- " org.scalatest " %%% " scalatest " % " 3.0.0 " % " test " ,
25- " com.lihaoyi " %%% " scalatags " % " 0.6.0 "
18+ " be.doeraene" %%% " scalajs-jquery" % " 0.9.0" ,
19+ " com.lihaoyi " %%% " scalatags " % " 0.6.0 " ,
20+ " org.scala-js " %%% " scalajs-dom " % " 0.9.1 " ,
21+ " org.scalatest " %%% " scalatest " % " 3.0.0 " % " test "
2622)
23+ skip in packageJSDependencies := false // All JavaScript dependencies to be concatenated to a single file
24+
25+ scalacOptions in (Compile ,doc) ++= Seq (" -doc-root-content" , baseDirectory.value+ " /src/main/scala-2.11/root-doc.md" ,
26+ " -groups" , " -implicits" )
2727
2828// ** Scala.js configuration **
29- lazy val root = (project in file(" ." )).enablePlugins(ScalaJSPlugin )
29+ // lazy val root = (project in file(".")).
30+ enablePlugins(ScalaJSPlugin )
3031
3132// Necessary for testing
3233jsDependencies += RuntimeDOM
3334scalaJSUseRhino in Global := false
34- // testFrameworks += new TestFramework("utest.runner.Framework")
3535
3636// If true, a launcher script src="../[normalizedName]-launcher.js will be generated
3737// that always calls the main def indicated by the used JSApp trait.
@@ -47,15 +47,16 @@ persistLauncher in Test := false
4747
4848// Workbench settings **
4949if (sys.env.isDefinedAt(" CI" )) {
50- println(" Workbench disabled" , sys.env.getOrElse(" CI" , " ?" ))
50+ println(" Workbench disabled " , sys.env.getOrElse(" CI" , " ?" ))
5151 Seq .empty
5252} else {
5353 println(" Workbench enabled" )
5454 workbenchSettings
5555}
5656
5757if (sys.env.isDefinedAt(" CI" )) normalizedName := normalizedName.value // Dummy
58- else refreshBrowsers <<= refreshBrowsers.triggeredBy(fastOptJS in Compile )
58+ else // Update without refreshing the page every time fastOptJS completes
59+ updateBrowsers <<= updateBrowsers.triggeredBy(fastOptJS in Compile )
5960
6061if (sys.env.isDefinedAt(" CI" )) normalizedName := normalizedName.value
6162else // Workbench has to know how to restart your application
0 commit comments