chore: bump version and cleanup publishing
This commit is contained in:
parent
2fd9778b23
commit
7e7312fcf0
3 changed files with 29 additions and 31 deletions
|
@ -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
|
||||
|
||||
- [X] SSR support
|
||||
- [ ] CSR support
|
||||
- [X] CSR support
|
||||
- [ ] Hydration
|
||||
- [ ] router
|
||||
- [ ] ReScala reactive backend
|
||||
- [ ] zio server integration
|
||||
- [ ] http4s server integration
|
||||
|
||||
### TODO
|
||||
|
||||
- [ ] Type safety, eliminate ? as generic param and asInstanceOf where possible
|
||||
- [ ] AirStream reactive backend
|
||||
- [ ] other server integrations
|
||||
|
||||
## 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
|
||||
- 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
|
31
build.sbt
31
build.sbt
|
@ -1,30 +1,29 @@
|
|||
ThisBuild / scalaVersion := "3.5.2"
|
||||
ThisBuild / versionScheme := Some("semver-spec")
|
||||
|
||||
ThisBuild / publishMavenStyle := true
|
||||
ThisBuild / publishTo := Some(
|
||||
lazy val publishSettings = Seq(
|
||||
publishMavenStyle := true,
|
||||
publishTo := Some(
|
||||
"GitHub Package Registry" at "https://maven.pkg.github.com/davidon-top/sfs"
|
||||
)
|
||||
ThisBuild / credentials += Credentials(
|
||||
),
|
||||
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(
|
||||
),
|
||||
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 / 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()
|
||||
|
@ -34,9 +33,10 @@ generate := DomGenerator.generate()
|
|||
lazy val dom = crossProject(JSPlatform, JVMPlatform)
|
||||
.crossType(CrossType.Pure)
|
||||
.in(file("./dom"))
|
||||
.settings(publishSettings)
|
||||
.settings(
|
||||
name := "sfs-dom",
|
||||
version := "0.1.0-alpha",
|
||||
version := "0.1.0",
|
||||
libraryDependencies ++= Seq(
|
||||
"de.tu-darmstadt.stg" %% "rescala" % "0.35.1"
|
||||
)
|
||||
|
@ -55,8 +55,9 @@ lazy val dom = crossProject(JSPlatform, JVMPlatform)
|
|||
lazy val sfs = crossProject(JSPlatform, JVMPlatform)
|
||||
.crossType(CrossType.Pure)
|
||||
.in(file("./sfs"))
|
||||
.settings(publishSettings)
|
||||
.settings(
|
||||
name := "sfs",
|
||||
version := "0.1.0-alpha"
|
||||
version := "0.1.0"
|
||||
)
|
||||
.dependsOn(dom)
|
||||
|
|
|
@ -20,7 +20,7 @@ class StringRenderer() extends Renderer[String] {
|
|||
case e: Element[?] =>
|
||||
renderElement(e)
|
||||
}
|
||||
.mkString(" ")
|
||||
.mkString("")
|
||||
s"<${e.tag.name}$modsStr>$bodyStr${
|
||||
if e.tag.void then "" else s"</${e.tag.name}>"
|
||||
}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue