How to use gleam compile-package
#4988
Unanswered
mjsir911
asked this question in
Questions & support
Replies: 1 comment 3 replies
-
|
Check out the --help document for that command, it'll show you what it can do. It's a low level API that other build tools would use, similar to the compiler APIs you listed before, so there's not much motivation to document it heavily. It'll likely be used by almost no-one (I'm aware of two users user so far), and we don't want to accidentally give Gleam programmers the impression they should attempt to use it as they'll have a very poor experience. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
this is a continuation of #4986
mostly, just: how do I use this? there seems to be no documentation surrounding it and the builtin documentation is a little bit cryptic.
others looking for the same have started with the same questions as well: https://www.reddit.com/r/gleamlang/comments/1ebrq9s/does_gleam_have_a_core_compiler_eg_something_like/, even concluding the same compiler file name lmao
the only real reference to it on the blogs is https://gleam.run/news/v0.16-gleam-compiles-to-javascript/
specifically, the thing I'm confused about I think is the format of the libs dir. can't seem to get things working with that.
additionally, it looks like
compile-packagestill needs a directory structure withgleam.tomland such. only thenamefield seems required rn. should probs be documentedI believe this is a bug that there is no surrounding or not discoverable documentation. I'm opening this discussion as a place for my immediate questions to be answered, but ideally this exists somewhere less user-content-focused.
Beta Was this translation helpful? Give feedback.
All reactions