Select Git revision
-
William Billingsley authored
This switches to just using Swing and no modules for better compatibility with working with VS Code.
William Billingsley authoredThis switches to just using Swing and no modules for better compatibility with working with VS Code.
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"))
}