2024-03-15 10:21:48 +13:00
|
|
|
defmodule Splode.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
@version "0.1.0"
|
|
|
|
|
|
|
|
@description """
|
2024-03-15 13:32:03 +13:00
|
|
|
Splode helps you deal with errors and exceptions in your application that are aggregatable and consistent.
|
2024-03-15 10:21:48 +13:00
|
|
|
"""
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :splode,
|
|
|
|
version: @version,
|
|
|
|
elixir: "~> 1.16",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
deps: deps(),
|
|
|
|
docs: docs(),
|
|
|
|
package: package(),
|
|
|
|
description: @description,
|
|
|
|
source_url: "https://github.com/ash-project/splode",
|
|
|
|
homepage_url: "https://github.com/ash-project/splode"
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
|
|
|
[
|
2024-03-15 11:02:18 +13:00
|
|
|
name: :splode,
|
2024-03-15 10:21:48 +13:00
|
|
|
licenses: ["MIT"],
|
|
|
|
files: ~w(lib .formatter.exs mix.exs README* LICENSE*
|
|
|
|
CHANGELOG* documentation),
|
|
|
|
links: %{
|
|
|
|
GitHub: "https://github.com/ash-project/splode",
|
|
|
|
Discord: "https://discord.gg/HTHRaaVPUc",
|
|
|
|
Website: "https://ash-hq.org",
|
|
|
|
Forum: "https://elixirforum.com/c/elixir-framework-forums/ash-framework-forum"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp docs do
|
|
|
|
[
|
|
|
|
extras: [
|
|
|
|
"documentation/tutorials/get-started-with-splode.md"
|
|
|
|
],
|
|
|
|
source_ref: "v#{@version}",
|
|
|
|
extra_section: "GUIDES",
|
|
|
|
before_closing_head_tag: fn type ->
|
|
|
|
if type == :html do
|
|
|
|
"""
|
|
|
|
<script>
|
|
|
|
if (location.hostname === "hexdocs.pm") {
|
|
|
|
var script = document.createElement("script");
|
|
|
|
script.src = "https://plausible.io/js/script.js";
|
|
|
|
script.setAttribute("defer", "defer")
|
|
|
|
script.setAttribute("data-domain", "ashhexdocs")
|
|
|
|
document.head.appendChild(script);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
end
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(:test) do
|
|
|
|
["lib", "test/support"]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
|
|
|
# Dev/Test dependencies
|
|
|
|
{:ex_doc, github: "elixir-lang/ex_doc", only: [:dev, :test], runtime: false},
|
|
|
|
{:ex_check, "~> 0.12", only: [:dev, :test]},
|
|
|
|
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:mimic, "~> 1.7", only: [:test]},
|
|
|
|
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:git_ops, "~> 2.5", only: [:dev, :test]},
|
|
|
|
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:benchee, "~> 1.1", only: [:dev, :test]},
|
|
|
|
{:doctor, "~> 0.21", only: [:dev, :test]}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|