Skip to content

Commit

Permalink
Describe Scala.js artifacts in README
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszKubuszok committed Mar 11, 2021
1 parent 54c0964 commit defac2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,16 @@ make local-up
You can use Ctrl+D to gracefully shutdown service. Server will be available at
http://localhost:8080 and Swagger at
http://localhost:8080/docs/index.html?url=/docs/swagger.json .

### Reusing domain and API definitions

Commons, each domain's published language and API are cross-compiled JVM+JS.
This allows publishing the definitions for reuse with e.g. front-end Scala
application which interprets Tapir endpoints into e.g. sttp calls to backend.

Definitions are aggregated as `scalaJsArtifacts` so you could publish them all
locally with:

```bash
sbt:branchtalk> scalaJsArtifacts:publishLocal
```

0 comments on commit defac2e

Please sign in to comment.