defmodule Todo.MixProject do use Mix.Project @app :todo def project do [ app: @app, version: "0.1.0", elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), archives: [mix_gleam: "~> 0.6"], compilers: [:gleam | Mix.compilers()], aliases: [ "deps.get": ["deps.get", "gleam.deps.get"] ], erlc_paths: ["build/dev/erlang/#{@app}/_gleam_artefacts"], erlc_include_path: "build/dev/erlang/#{@app}/include", prune_code_paths: false ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: extra_applications(Mix.env()), mod: {Todo.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:poolboy, "~> 1.5"}, {:plug_cowboy, "~> 2.6"}, {:gleam_stdlib, "~> 0.34 or ~> 1.0"}, {:gleam_json, "~> 3.1"}, {:gleam_erlang, "~> 1.3"}, {:gleam_otp, "~> 1.3"}, {:simplifile, "~> 2.7"}, {:gleeunit, "~> 1.0", only: [:dev, :test], runtime: false} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} ] end defp extra_applications(:dev), do: [:logger, :runtime_tools, :observer, :wx] defp extra_applications(_), do: [:logger, :runtime_tools] end