51 lines
1.4 KiB
Scala
51 lines
1.4 KiB
Scala
ThisBuild / scalaVersion := "3.5.0"
|
|
ThisBuild / publishMavenStyle := true
|
|
ThisBuild / publishTo := Some(
|
|
"GitHub Package Registry" at "https://maven.pkg.github.com/davidon-top/sfs"
|
|
)
|
|
ThisBuild / credentials += Credentials(
|
|
"GitHub Package Registry",
|
|
"maven.pkg.github.com",
|
|
sys.env("THEHUB_USERNAME"),
|
|
sys.env("THEHUB_TOKEN")
|
|
)
|
|
ThisBuild / versionScheme := Some("early-semver")
|
|
ThisBuild / licenses += ("MIT", url("https://opensource.org/license/MIT"))
|
|
ThisBuild / scmInfo := Some(
|
|
ScmInfo(
|
|
url("https://github.com/davidon-top/sfs"),
|
|
"scm:https://github.com/davidon-top/sfs.git"
|
|
)
|
|
)
|
|
ThisBuild / organization := "top.davidon.sfs"
|
|
ThisBuild / organizationName := "DavidOnTop"
|
|
ThisBuild / organizationHomepage := Some(url("https://davidon.top"))
|
|
|
|
lazy val generate = taskKey[Unit]("pre compilation codegen task")
|
|
|
|
generate := DomGenerator.generate()
|
|
|
|
(Compile / compile) := ((Compile / compile) dependsOn generate).value
|
|
|
|
lazy val root = crossProject(JSPlatform, JVMPlatform)
|
|
.crossType(CrossType.Pure)
|
|
.in(file("./dom"))
|
|
.settings(
|
|
name := "sfs-dom",
|
|
version := "0.1.0-SNAPSHOT"
|
|
)
|
|
// .settings(
|
|
// libraryDependencies ++= Seq(
|
|
// "org.scala-js" % "scalajs-dom" % "2.8.0" % "sjs1_3"
|
|
// )
|
|
// )
|
|
.jvmSettings(
|
|
libraryDependencies ++= Seq(
|
|
"org.scala-js" % "scalajs-dom_sjs1_3" % "2.8.0"
|
|
)
|
|
)
|
|
.jsSettings(
|
|
libraryDependencies ++= Seq(
|
|
"org.scala-js" % "scalajs-dom_sjs1_3" % "2.8.0"
|
|
)
|
|
)
|