mix compile.gleam (Lissome v0.3.1)
View SourceCompiles Gleam source files BEAM files.
This task compiles your Gleam source files in two steps:
- First, it uses
gleam build
command to convert Gleam files into Erlang (.erl
) files - Then it compiles those Erlang files into BEAM bytecode using Erlang's
:code
module
The resulting BEAM files are placed in your project's build directory under the directory matching your application name.
Include this task in your project's mix.exs
with, e.g.:
def project do
[
compilers: Mix.compilers() ++ [:gleam],
]
end
For other ways to compile Gleam code, see Mix.Tasks.Lissome.BuildGleam
.