-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross-compile for scala.js #79
Comments
I could try to do this, I've done a bunch of scala.js projects and we may need coulomb |
@cquiroz if you want to take a stab at it, please feel free! I'm hoping it's mostly additional targets in sbt, and corresponding in travis ci |
It is blocked on spire that hasn't been released yet for scala.js 1.0 |
crossref: typelevel/spire#888 |
Looks like the "real" problem is the archival of machinist |
@cquiroz I believe spire 0.17.0-RC1 is building with scalaJS 1.x |
Yes, I'm waiting for a release |
scala-steward updated to spire 0.17.0-RC1, which I merged, so if you rebase from |
Yes I'm updating the build, will send a PR soon |
Actually I found a show stopper. coulomb uses |
I can try Mostly I'm using them to provide default names based on the name of a type. Another possible approach would be to not support defaults that require WeakTypeTag or TypeTag, or not support them in scala.js - the code would need some refactoring to support that kind of dual functionality. Or possibly punt to macros. those are supported IIUC Maybe a dedicated implicit Scala's support for "conditional compilation" is pretty awkward, but I see people do it. If we are ultimately forced to use macros, this is nice and compact. |
@tpolecat sugested to use shapeless |
I can try todo it and make sure they'd run in scala.js |
Sounds like a good approach, shapeless is already a dependency. If it works, I'm happy to use it everywhere. I recently migrated everything to It might be worth using a shim |
closing with #97 |
I know absolutely nothing about scala.js or its ecosystem.
If I'm lucky, sbt-crossproject would allow me to fake this.
https://github.com/portable-scala/sbt-crossproject
The text was updated successfully, but these errors were encountered: