Current section

Files

Jump to
hedgex mix.exs
Raw

mix.exs

defmodule Hedgex.MixProject do
use Mix.Project
@version "0.3.1"
@source_url "https://github.com/alexkuang/hedgex"
def project do
[
app: :hedgex,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: "Posthog client for Elixir.",
package: package(),
dialyzer: dialyzer_settings()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Hedgex.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:req, "~> 0.5.0"},
{:gen_stage, "~> 1.2.0"},
{:plug, "~> 1.0", only: :test},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp dialyzer_settings do
[
plt_file: {:no_warn, "priv/plts/hedgex.plt"},
plt_add_apps: [:mix]
]
end
defp docs do
[
extras: [
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp package do
[
maintainers: ["Alex Kuang"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
end