Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aappddeevv/sbt-copy-scalajs-artifact
- Owner: aappddeevv
- Created: 2020-03-07T17:05:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T12:41:07.000Z (almost 5 years ago)
- Last Synced: 2024-11-06T09:44:00.054Z (2 months ago)
- Language: Scala
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.sbtlazy 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.