chore: bump version and cleanup publishing

This commit is contained in:
DavidOnTop 2024-10-26 22:15:55 +02:00
parent 2fd9778b23
commit 7e7312fcf0
No known key found for this signature in database
GPG key ID: 5D05538A45D5149F
3 changed files with 29 additions and 31 deletions

View file

@ -7,23 +7,20 @@ SFS full name ScalaFullStack is a collection of libraries to make full stack dev
This project is far from being ready to use so for now these also include planned features for 1.0 This project is far from being ready to use so for now these also include planned features for 1.0
- [X] SSR support - [X] SSR support
- [ ] CSR support - [X] CSR support
- [ ] Hydration - [ ] Hydration
- [ ] router - [ ] router
- [ ] ReScala reactive backend
- [ ] zio server integration - [ ] zio server integration
- [ ] http4s server integration
### TODO ### TODO
- [ ] Type safety, eliminate ? as generic param and asInstanceOf where possible - [ ] Type safety, eliminate ? as generic param and asInstanceOf where possible
- [ ] AirStream reactive backend
- [ ] other server integrations - [ ] other server integrations
## Packages ## Packages
- sfs - different renderers (String, dom, hydration) and reactivity bindings - sfs - different renderers (String, dom, hydration) and reactivity bindings and router
- dom - shared jvm/js html builder which includes: tags, attributes, props, svg, utils - dom - shared jvm/js html builder which includes: tags, attributes, props, svg, utils
- possible to use from other libraries which need a js+jvm html/dom builder - possible to use from other libraries which need a js+jvm html/dom builder
- router - implements a universal router for ssr and csr/hydration
- reactive/* - various reactive backends
- integrations/* - various server integrations - integrations/* - various server integrations

View file

@ -1,29 +1,28 @@
ThisBuild / scalaVersion := "3.5.2" ThisBuild / scalaVersion := "3.5.2"
ThisBuild / versionScheme := Some("semver-spec") ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / publishMavenStyle := true lazy val publishSettings = Seq(
ThisBuild / publishTo := Some( publishMavenStyle := true,
"GitHub Package Registry" at "https://maven.pkg.github.com/davidon-top/sfs" publishTo := Some(
"GitHub Package Registry" at "https://maven.pkg.github.com/davidon-top/sfs"
),
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
sys.env("THEHUB_USERNAME"),
sys.env("THEHUB_TOKEN")
),
licenses += ("MIT", url("https://opensource.org/license/MIT")),
scmInfo := Some(
ScmInfo(
url("https://github.com/davidon-top/sfs"),
"scm:https://github.com/davidon-top/sfs.git"
)
),
organization := "top.davidon.sfs",
organizationName := "DavidOnTop",
organizationHomepage := Some(url("https://davidon.top"))
) )
ThisBuild / credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
sys.env("THEHUB_USERNAME"),
sys.env("THEHUB_TOKEN")
)
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") lazy val generate = taskKey[Unit]("pre compilation codegen task")
@ -34,9 +33,10 @@ generate := DomGenerator.generate()
lazy val dom = crossProject(JSPlatform, JVMPlatform) lazy val dom = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure) .crossType(CrossType.Pure)
.in(file("./dom")) .in(file("./dom"))
.settings(publishSettings)
.settings( .settings(
name := "sfs-dom", name := "sfs-dom",
version := "0.1.0-alpha", version := "0.1.0",
libraryDependencies ++= Seq( libraryDependencies ++= Seq(
"de.tu-darmstadt.stg" %% "rescala" % "0.35.1" "de.tu-darmstadt.stg" %% "rescala" % "0.35.1"
) )
@ -55,8 +55,9 @@ lazy val dom = crossProject(JSPlatform, JVMPlatform)
lazy val sfs = crossProject(JSPlatform, JVMPlatform) lazy val sfs = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure) .crossType(CrossType.Pure)
.in(file("./sfs")) .in(file("./sfs"))
.settings(publishSettings)
.settings( .settings(
name := "sfs", name := "sfs",
version := "0.1.0-alpha" version := "0.1.0"
) )
.dependsOn(dom) .dependsOn(dom)

View file

@ -20,7 +20,7 @@ class StringRenderer() extends Renderer[String] {
case e: Element[?] => case e: Element[?] =>
renderElement(e) renderElement(e)
} }
.mkString(" ") .mkString("")
s"<${e.tag.name}$modsStr>$bodyStr${ s"<${e.tag.name}$modsStr>$bodyStr${
if e.tag.void then "" else s"</${e.tag.name}>" if e.tag.void then "" else s"</${e.tag.name}>"
}" }"