Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Sep 6, 2021
1 parent 9bee01b commit ba773a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@ Allows you to build [WebJars](https://www.webjars.org/) from [Scala.js](https://

### plugins.sbt
```sbt
addSbtPlugin("de.lolhens" % "sbt-scalajs-webjar" % "0.3.5")
addSbtPlugin("de.lolhens" % "sbt-scalajs-webjar" % "0.4.0")
```

Example
-------

```scala
lazy val shared = crossProject(JSPlatform, JVMPlatform).crossType(CrossType.Pure).in(file("shared"))

lazy val sharedJs = shared.js
lazy val sharedJvm = shared.jvm

lazy val server = project.in(file("server"))
.dependsOn(sharedJvm)
.dependsOn(clientWebjar)

lazy val client = project.in(file("client"))
lazy val frontend = project.in(file("client"))
.enablePlugins(ScalaJSWebjarPlugin)
.dependsOn(sharedJs)

lazy val clientWebjar = client.webjar
lazy val frontendWebjar = frontend.webjar

lazy val server = project.in(file("server"))
.dependsOn(sharedJvm)
.dependsOn(frontendWebjar)
```

Licensing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lazy val root = project.in(file(".")).settings(
scalaVersion := "2.13.1"
)
.aggregate(backend, frontend.webjar)
.aggregate(backend, frontendWebjar)

lazy val frontend = project
.enablePlugins(
Expand All @@ -26,6 +26,8 @@ lazy val frontend = project
}
)

lazy val frontendWebjar = frontend.webjar

lazy val backend = project
.settings(
name := "backend",
Expand All @@ -38,4 +40,4 @@ lazy val backend = project
(Compile / compile).value
}
)
.dependsOn(frontend.webjar)
.dependsOn(frontendWebjar)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lazy val root = project.in(file(".")).settings(
scalaVersion := "2.13.1"
)
.aggregate(backend, frontend.webjar)
.aggregate(backend, frontendWebjar)

lazy val frontend = project
.enablePlugins(
Expand All @@ -15,6 +15,8 @@ lazy val frontend = project
scalaJSUseMainModuleInitializer := true
)

lazy val frontendWebjar = frontend.webjar

lazy val backend = project
.settings(
name := "backend",
Expand All @@ -27,4 +29,4 @@ lazy val backend = project
(Compile / compile).value
}
)
.dependsOn(frontend.webjar)
.dependsOn(frontendWebjar)

0 comments on commit ba773a4

Please sign in to comment.