Git Product home page Git Product logo

sbt-scommons-plugin's Introduction

CI Coverage Status scala-index Scala.js

Scala Commons Client

Common Scala.js, React.js web-client utilities and components.

Showcase/Demo UI

To see the showcase/demo UI with all the components live use the following link:

https://scommons.github.io/scommons-client/showcase/

How to add it to your project

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/"

How to use it

How to Build

To build and run all the tests use the following command:

sbt clean test

How to Run Showcase/Demo locally

Please, see the README.md in showcase sub-project page.

Documentation

You can find more documentation here

sbt-scommons-plugin's People

Contributors

viktor-podzigun avatar

Watchers

 avatar  avatar

Forkers

myyk

sbt-scommons-plugin's Issues

Remove dependency on DOM in CommonMobileModule

Since we have to substitute references to react-native modules with corresponding mocks during test, we have used custom webpack config for it: sc-react-native-mocks.webpack.config.js which also required requireJsDomEnv in Test := true.

Apparently, there is a better way to mock modules on Node.js platform, by using:

Add resource bundle generation

It would be useful to have a generic task that using the provided file filter can generate single bundle.json file with the list of resource files and their content.

Remove play sbt-plugin dependencies

In order to make the sbt-scommons-plugin more generic we have to remove more specific dependencies:

    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.21"), // same as CommonLibs.playVer
    addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.2"),
    addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.3"),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.