You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is feasible, but a scala-js version of this library would help me a lot, since I have a ton of existing code which I could start using on the client-side immediately.
We don't have plans to release a scala-js version of the Scala modules in the near term. Perhaps you could pose your question to the Scala JS Mailing List to see if any work has already been started by the community to bridge Scala's XML syntax to JS.
Checked the ScalaJS ML; this was discussed before but no body published it.
I tried building with scala-js and it worked fine on first attempt! (I had been wary of getting lost in sbt land). I will test it further and try to make a PR. I am not familiar with publishing and have some doubts about code organisation.
SBT project organisation
The scala-js sbt plugin seems to require a separate (sub) project. For the JVM and JS targets to co-exist, it might require shuffling the scala code into a separate folder, say shared, that is used by two sub projects: a JVM project and a JS project.
Ideally, I want to avoid changing the code structure, so I will first try preserving it.
Publishing
I am not familiar with publishing artifacts to maven, etc. I was able to publish the artifact locally. Will probably leave the rest to the experts.
Agreed, there is a demand for a published Scala.js artifact of scala-xml. IMO, there are a few bug fixes unrelated to Scala.js that would be worth including. They just need to get over the line and in to the release:
Activity
retronym commentedon Apr 9, 2015
We don't have plans to release a scala-js version of the Scala modules in the near term. Perhaps you could pose your question to the Scala JS Mailing List to see if any work has already been started by the community to bridge Scala's XML syntax to JS.
retronym commentedon Apr 9, 2015
Closing as Won't Fix for now. But we're willing to consider a contribution if it is technically feasible.
hrj commentedon Apr 9, 2015
Checked the ScalaJS ML; this was discussed before but no body published it.
I tried building with scala-js and it worked fine on first attempt! (I had been wary of getting lost in sbt land). I will test it further and try to make a PR. I am not familiar with publishing and have some doubts about code organisation.
SBT project organisation
The scala-js sbt plugin seems to require a separate (sub) project. For the JVM and JS targets to co-exist, it might require shuffling the scala code into a separate folder, say
shared
, that is used by two sub projects: a JVM project and a JS project.Ideally, I want to avoid changing the code structure, so I will first try preserving it.
Publishing
I am not familiar with publishing artifacts to maven, etc. I was able to publish the artifact locally. Will probably leave the rest to the experts.
omidb commentedon Oct 25, 2015
It would be great if you can release ScalaJS version of the lib. It's a Scala module and it should be more flexible than STD lib.
SethTisue commentedon Oct 25, 2015
reopening, not because the Scala team plans to work on it, but in the hopes someone in the community will
Atry commentedon Sep 25, 2016
At the moment, Scala.js with Scala 2.10 does compile XML literals. So I guess it is possible for Scala 2.11+ as well.
Avoid XML literal because Scala.js on Scala 2.11+ does not support it…
bbarker commentedon Mar 26, 2017
With the resulting fix from #109 , curious if it is worth publishing a new release so we can also get a compiled artifact for scala.js.
Not really an issue for this ticket, but would be great to have it mentioned on https://www.scala-js.org/libraries/libs.html once it is published.
ashawley commentedon Mar 27, 2017
Agreed, there is a demand for a published Scala.js artifact of scala-xml. IMO, there are a few bug fixes unrelated to Scala.js that would be worth including. They just need to get over the line and in to the release:
https://github.com/scala/scala-xml/wiki/Release-Plans