igniter/mix.exs

115 lines
3.1 KiB
Elixir
Raw Normal View History

2024-05-28 15:30:41 +12:00
defmodule Igniter.MixProject do
use Mix.Project
2024-09-07 06:59:03 +12:00
@version "0.3.25"
2024-05-30 02:28:08 +12:00
2024-06-13 12:37:09 +12:00
@description """
A code generation and project patching framework
"""
2024-05-28 15:30:41 +12:00
def project do
[
app: :igniter,
2024-05-30 02:28:08 +12:00
version: @version,
2024-06-06 02:12:07 +12:00
elixir: "~> 1.15",
2024-05-28 15:30:41 +12:00
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
2024-06-13 12:37:09 +12:00
description: @description,
aliases: aliases(),
2024-06-13 12:36:32 +12:00
package: package(),
2024-05-30 02:28:08 +12:00
docs: docs(),
2024-05-28 15:30:41 +12:00
deps: deps()
]
end
defp elixirc_paths(:test) do
elixirc_paths(:dev) ++ ["test/support"]
end
defp elixirc_paths(_env) do
["lib", "installer/lib/private"]
end
2024-05-28 15:30:41 +12:00
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :public_key, :ssl, :inets, :eex]
2024-05-28 15:30:41 +12:00
]
end
2024-05-30 02:28:08 +12:00
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/ash-project/igniter",
2024-06-13 10:22:08 +12:00
logo: "logos/igniter-logo-small.png",
2024-05-30 02:28:08 +12:00
extra_section: "GUIDES",
extras: [
2024-06-13 11:37:32 +12:00
{"README.md", title: "Home"},
2024-06-13 12:34:44 +12:00
"documentation/writing-generators.md",
"documentation/configuring-igniter.md",
2024-06-13 12:34:44 +12:00
"CHANGELOG.md"
2024-05-30 02:28:08 +12:00
],
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
2024-06-13 12:36:32 +12:00
defp package do
[
name: :igniter,
licenses: ["MIT"],
files: ~w(lib installer/lib/private .formatter.exs mix.exs README* LICENSE*
2024-06-13 12:36:32 +12:00
CHANGELOG*),
links: %{
GitHub: "https://github.com/ash-project/igniter",
Discord: "https://discord.gg/HTHRaaVPUc",
Website: "https://ash-hq.org",
Forum: "https://elixirforum.com/c/elixir-framework-forums/ash-framework-forum"
}
]
end
2024-05-28 15:30:41 +12:00
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:rewrite, "~> 0.9"},
2024-06-04 15:14:36 +12:00
{:glob_ex, "~> 0.1.7"},
2024-06-20 11:25:45 +12:00
{:spitfire, "~> 0.1 and >= 0.1.3"},
{:sourceror, "~> 1.4"},
{:jason, "~> 1.4"},
2024-05-30 02:28:08 +12:00
# Dev/Test dependencies
{:eflame, "~> 1.0", only: [:dev, :test]},
{:ex_doc, "~> 0.32", 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]},
{: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]}
2024-05-28 15:30:41 +12:00
]
end
defp aliases do
[
credo: "credo --strict"
]
end
2024-05-28 15:30:41 +12:00
end