Skip to content
Snippets Groups Projects
Select Git revision
  • 1e11e1c5ded8861f98593e4d6dde88b39d2c7256
  • main default protected
2 results

gradlew

Blame
  • build.sbt 1.27 KiB
    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"))
    }
    
    val fastDeployScript = taskKey[Unit]("Copies the fastOptJS 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!
    fastDeployScript := {
      val opt = (Compile / fastOptJS).value
      IO.copyFile(opt.data, new java.io.File("deployscripts/compiled.js"))
    }