Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lhns/sbt-scalajs-webjar
Build webjars from scalajs projects
https://github.com/lhns/sbt-scalajs-webjar
sbt sbt-plugin scala scalajs webjar
Last synced: 3 months ago
JSON representation
Build webjars from scalajs projects
- Host: GitHub
- URL: https://github.com/lhns/sbt-scalajs-webjar
- Owner: lhns
- License: apache-2.0
- Created: 2018-08-30T14:54:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-06T00:24:46.000Z (4 months ago)
- Last Synced: 2024-10-11T00:09:26.573Z (4 months ago)
- Topics: sbt, sbt-plugin, scala, scalajs, webjar
- Language: Scala
- Homepage:
- Size: 213 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sbt-scalajs-webjar
[![build](https://github.com/lhns/sbt-scalajs-webjar/actions/workflows/build.yml/badge.svg)](https://github.com/lhns/sbt-scalajs-webjar/actions/workflows/build.yml)
[![Release Notes](https://img.shields.io/github/release/lhns/sbt-scalajs-webjar.svg?maxAge=3600)](https://github.com/lhns/sbt-scalajs-webjar/releases/latest)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.lhns/sbt-scalajs-webjar/badge.svg)](https://search.maven.org/artifact/de.lhns/sbt-scalajs-webjar)
[![Apache License 2.0](https://img.shields.io/github/license/lhns/sbt-scalajs-webjar.svg?maxAge=3600)](https://www.apache.org/licenses/LICENSE-2.0)
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)Allows you to build [WebJars](https://www.webjars.org/) from [Scala.js](https://www.scala-js.org/) projects.
### plugins.sbt
```sbt
addSbtPlugin("de.lhns" % "sbt-scalajs-webjar" % "0.5.0")
```Example
-------```scala
lazy val shared = crossProject(JSPlatform, JVMPlatform).crossType(CrossType.Pure).in(file("shared"))lazy val sharedJs = shared.js
lazy val sharedJvm = shared.jvmlazy val frontend = project.in(file("client"))
.enablePlugins(ScalaJSWebjarPlugin)
.dependsOn(sharedJs)lazy val frontendWebjar = frontend.webjar
lazy val server = project.in(file("server"))
.dependsOn(sharedJvm)
.dependsOn(frontendWebjar)
```Licensing
---------
This project uses the Apache 2.0 License. See the file called LICENSE.