Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aappddeevv/sbt-copy-scalajs-artifact

Copies the scalajs artifact to another location along with the map file.
https://github.com/aappddeevv/sbt-copy-scalajs-artifact

Last synced: 25 days ago
JSON representation

Copies the scalajs artifact to another location along with the map file.

Awesome Lists containing this project

README

        

# sbt-copy-scalajs-artifact
This sbt plugin copies scala.js artifacts to a new location.

[ ![Download](https://api.bintray.com/packages/aappddeevv/sbt-plugins/sbt-copy-scalajs-artifact/images/download.svg?version=0.1.0) ](https://bintray.com/aappddeevv/sbt-plugins/sbt-copy-scalajs-artifact/0.1.0/link)

## Usage
Copy the scala.js artifacts, js source and map file, to a different directory.
This plugin does *not* adjust the source map content in case the source map
contains relative directory location in the `sources` member.

To use, add the following:

```scala
// plugins.sbt
resolvers += Resolver.bintrayIvyRepo("aappddeevv", "sbt-plugins")

addSbtPlugin("ttg" % "sbt-copy-scalajs-artifact" % "")
```

See the badge for the latest version.

Then in your build.sbt:

```scala
// build.sbt

lazy val subproject = project.in(file("subproject"))
.enablePlugin(ScalaJSPlugin, CopyJSPlugi)
.setting(copyTarget := baseDirectory / "someotherdir")
```

Works with scala.js 1+ but not 0.6.

## License

MIT license.