Common Scala.js, React.js web-client utilities and components.
To see the showcase/demo UI with all the components live use the following link:
https://scommons.github.io/scommons-client/showcase/
val scommonsApiVer = "1.0.0-SNAPSHOT"
val scommonsReactVer = "1.0.0-SNAPSHOT"
val scommonsClientVer = "1.0.0-SNAPSHOT"
val scommonsServiceVer = "1.0.0-SNAPSHOT"
libraryDependencies ++= Seq(
// shared
"org.scommons.api" %%% "scommons-api-core" % scommonsApiVer,
"org.scommons.api" %%% "scommons-api-joda-time" % scommonsApiVer,
// client/js only
"org.scommons.api" %%% "scommons-api-xhr" % scommonsApiVer,
"org.scommons.client" %%% "scommons-client-ui" % scommonsClientVer,
"org.scommons.react" %%% "scommons-react-test-dom" % scommonsReactVer % "test",
// server/jvm only
"org.scommons.service" %% "scommons-service-play" % scommonsServiceVer,
"org.scommons.api" %% "scommons-api-play-ws" % scommonsApiVer % "test"
)
Latest SNAPSHOT
version is published to Sonatype Repo, just make sure you added
the proper dependency resolver to your build.sbt
settings:
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
To build and run all the tests use the following command:
sbt clean test
Please, see the README.md in showcase sub-project page.
You can find more documentation here