Cross compile projects for Scala and Scala.js #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allows using
gogglesfrom Scala.js projects. I know a previous scala.js branch was reverted #44 due to it altering the project layout, on this PR I'm trying to keep things on their original place while still compiling to both platforms.Now that
Scala.js 1is on the wild it's much more easier to cross compile this project without changing the project structure.sbt-crossprojectto targetScala 1.2.0build.stfor cross compilationroot projects have the setting
withoutSuffixFor(JVMPlatform)so that you can use them directly without prefixdslProjectare green on both JS and JVM platformmacrosProjectare green and only run on JVM platform since they are a compile-time feature.specs2to version4.10.3which fully supportsscalajs1.monocle-coreto version1.7.3(latest major 1.x version that uses scalaz) that supportsscalajs1jitpack.ymlfile so that we can fetch cross compiled artifacts from jitpack.io for no-yet-released branches like this one.