Skip to content
Snippets Groups Projects
Select Git revision
  • df8e0d9a3bde9825a01028f65ca54ad03d47c70e
  • main default protected
  • planning
3 results

build.sbt

Blame
  • build.sbt 916 B
    enablePlugins(ScalaJSPlugin)
    
    name := "acsmappings2022"
    //organization := "com.wbillingsley"
    scalaVersion := "3.1.0"
    
    // Don't automatically call main
    scalaJSUseMainModuleInitializer := false
    
    resolvers += "jitpack" at "https://jitpack.io"
    
    updateOptions := updateOptions.value.withLatestSnapshots(false)
    
    libraryDependencies ++= Seq(
    //  "org.scala-js" %%% "scalajs-dom" % "1.1.0",
      "com.github.wbillingsley.veautiful" %%% "veautiful" % "master-SNAPSHOT",
      "com.github.wbillingsley.veautiful" %%% "doctacular" % "master-SNAPSHOT",
    )
    
    
    val deployScript = taskKey[Unit]("Copies the fullOptJS script to deployscripts/")
    
    // Used by Travis-CI to get the script out from the .gitignored target directory
    // Don't run it locally, or you'll find the script gets loaded twice in index.html!
    deployScript := {
      val opt = (Compile / fullOptJS).value
      IO.copyFile(opt.data, new java.io.File("deployscripts/compiled.js"))
    }