Skip to content

midas-framework/elixir_with_gleam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirWithGleam

A example project with Gleam and Elixir playing nicely with Mix.

To use this repo you need to have both Elixir and Gleam installed.

Steps to add Gleam to an existing Mix Project.

Install gleam binary

https://gleam.run/getting-started/installing-gleam.html

Update mix.exs to compile .gleam files and include the Gleam standard library.

defmodule ElixirWithGleam.MixProject do
  use Mix.Project

  def project do
    [
      # ...
      erlc_paths: ["src", "gen"],
      compilers: [:gleam | Mix.compilers()],
      # ...
    ]
  end

  defp deps do
    [
      # ...
      {:mix_gleam, "~> 0.1.0"},
      {:gleam_stdlib, "~> 0.8.0"}
      # ...
    ]
  end
  # ...
end

Releases

No releases published

Packages

No packages published