Open hrj opened 9 years ago
As a quick fix, would it be possible to emit Scala code as a text file? The file can then be included into a scala.js project.
Something like:
val codeGenerator = ScalaCodeGenerator[SomeAPI]("packageName", "className")
codeGenerator.write("fileName.scala")
I suppose this will be easier than writing a macro.
Interesting, it is possible as well. I personally don't like generated source files so would prefer to have a macro even if it is more complex.
Quoting the readme: