kindling/mix.exs

56 lines
1.2 KiB
Elixir
Raw Normal View History

2024-02-23 00:24:26 +00:00
defmodule Kindling.MixProject do
use Mix.Project
def project do
[
app: :kindling,
2024-04-12 15:16:58 +00:00
version: version(),
2024-02-23 00:24:26 +00:00
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
2024-04-12 15:16:58 +00:00
deps: deps(),
# Docs
source_url: "https://gitlab.com/mythic-insight/kindling",
docs: [
main: "Kindling"
],
# Hex
licenses: ["MIT"],
links: %{
"source" => "https://gitlab.com/mythic-insight/kindling"
}
2024-02-23 00:24:26 +00:00
]
end
2024-04-12 15:16:58 +00:00
def version do
[_, version] =
"README.md"
|> File.read!()
|> then(&Regex.run(~r/{:kindling, "~> ([^"]+)"}/, &1))
version
end
2024-02-23 00:24:26 +00:00
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
2024-04-12 15:16:58 +00:00
{:credo, "~> 1.7", only: [:dev]},
2024-02-24 16:42:27 +00:00
{:ecto, "~> 3.11", only: [:dev, :test]},
2024-04-12 15:16:58 +00:00
{:ex_doc, "~> 0.31.2", only: [:dev]},
2024-02-23 00:24:26 +00:00
{:jason, "~> 1.4"},
{:recase, "~> 0.7.0"},
{:req, "~> 0.4.11"}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end