-
Notifications
You must be signed in to change notification settings - Fork 23
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
Js build #247
Conversation
# Conflicts: # cli/.js/src/main/scala/aqua/JsApp.scala # cli/src/main/scala/aqua/AppOps.scala # cli/src/main/scala/aqua/AquaPathCompiler.scala
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the publishing flow to have the compiled .js
file both in the NPM package and as a GitHub release asset.
We shouldn't switch to the JS version in the NPM yet, just deliver it along with the old .jar version to enable experiments.
outputF, | ||
output => | ||
toError( | ||
importsF, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It definitely should be done better -- maybe with mapN
or ap
cli/src/main/scala/aqua/AppOps.scala
Outdated
if (isFile) { | ||
val filename = p.fileName.toString | ||
val ext = Option(filename) | ||
.filter(_.contains(".")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.exists(_.endsWith(".aqua"))
use
sbt cliJS/fullLinkJS
to compile aqua compiler to jscompiled source will be here
cli/.js/target/scala-3.0.1/cli-opt/