jbang support / integration #987
Replies: 3 comments 3 replies
-
currently stuck on #988 |
Beta Was this translation helpful? Give feedback.
-
As a user, how do I use jbang/teavm integration to turn my "Hello, world" app into JavaScript and run it in the browser? Should I do the following:
This is not even close to the experience of using JBang when I just type single JBang command and see "Hello, world" in the console. Or it there something else? |
Beta Was this translation helpful? Give feedback.
-
Another thing I noticed is that this integration uses something that perhaps it should not: |
Beta Was this translation helpful? Give feedback.
-
I became aware of teavm having various cli's published to maven central in https://www.reddit.com/r/java/comments/1hea1ju/teavm_0110_with_support_for_webassembly_gc/ and thought i would continue the conversation over here.
jbang can help make those cli's available to actually use - I kicked that off by creating https://github.com/jbanghub/teavm which lets you do things like:
jbang teavm-cli@jbanghub/teavm
to run the compiler or if you want to install things, like the devserver dojbang app install teavm-devserver@jbanghub/teavm
and you can now just runteavm-devserver
. This will work on windows, mac and linux (and any other OS with java and decent shells available).That is jbang making teavm more accesible outside just maven/gradle.
Other part is how to best enable jbang projects to build/compile wasm projects.
JBang has a few integration points but not sure which makes sense - probably most
jbang export
or just simple documenting how to actually use the cli above to build ...but I'll need some pointers where it makes sense to start :)I
Beta Was this translation helpful? Give feedback.
All reactions