Skip to content

Conversation

@vic
Copy link

@vic vic commented Oct 9, 2020

Allows using goggles from 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 1 is on the wild it's much more easier to cross compile this project without changing the project structure.

  • Added plugin sbt-crossproject to target Scala 1.2.0
  • Configured build.st for cross compilation
    root projects have the setting withoutSuffixFor(JVMPlatform) so that you can use them directly without prefix
    sbt> dslProject/test
    ...
    [info] Passed: Total 141, Failed 0, Errors 0, Passed 141
    
    sbt> dslProjectJS/test
    [info] Passed: Total 141, Failed 0, Errors 0, Passed 141
    
  • Tests for dslProject are green on both JS and JVM platform
  • Tests for macrosProject are green and only run on JVM platform since they are a compile-time feature.
  • Upgraded specs2 to version 4.10.3 which fully supports scalajs1.
  • Upgraded monocle-core to version 1.7.3 (latest major 1.x version that uses scalaz) that supports scalajs1
  • Added a jitpack.yml file so that we can fetch cross compiled artifacts from jitpack.io for no-yet-released branches like this one.

@vic vic force-pushed the scalajs branch 2 times, most recently from 79da3d7 to c228490 Compare October 9, 2020 22:55
@vic vic changed the title Cross compile projects for Scala and Scala.js WIP: Cross compile projects for Scala and Scala.js Oct 9, 2020
@vic vic force-pushed the scalajs branch 4 times, most recently from 1608d7a to 8073fa0 Compare October 10, 2020 00:55
@vic vic changed the title WIP: Cross compile projects for Scala and Scala.js Cross compile projects for Scala and Scala.js Oct 10, 2020
@vic
Copy link
Author

vic commented Oct 10, 2020

Tests green Main workflow running on GitHub CI via #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant