mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-19 21:12:54 +12:00
8937710de9
improvement: add configurations for not moving certain modules improvement: make `source_folders` configurable
107 lines
2.9 KiB
Elixir
107 lines
2.9 KiB
Elixir
defmodule Igniter.MixProject do
|
|
use Mix.Project
|
|
|
|
@version "0.2.6"
|
|
|
|
@description """
|
|
A code generation and project patching framework
|
|
"""
|
|
|
|
def project do
|
|
[
|
|
app: :igniter,
|
|
version: @version,
|
|
elixir: "~> 1.15",
|
|
start_permanent: Mix.env() == :prod,
|
|
description: @description,
|
|
aliases: aliases(),
|
|
package: package(),
|
|
docs: docs(),
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
extra_applications: [:logger]
|
|
]
|
|
end
|
|
|
|
defp docs do
|
|
[
|
|
main: "readme",
|
|
source_ref: "v#{@version}",
|
|
source_url: "https://github.com/ash-project/igniter",
|
|
logo: "logos/igniter-logo-small.png",
|
|
extra_section: "GUIDES",
|
|
extras: [
|
|
{"README.md", title: "Home"},
|
|
"documentation/writing-generators.md",
|
|
"documentation/configuring-igniter.md",
|
|
"CHANGELOG.md"
|
|
],
|
|
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 package do
|
|
[
|
|
name: :igniter,
|
|
licenses: ["MIT"],
|
|
files: ~w(lib .formatter.exs mix.exs README* LICENSE*
|
|
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
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
{:rewrite, "~> 0.9"},
|
|
{:req, "~> 0.4"},
|
|
{:glob_ex, "~> 0.1.7"},
|
|
{:spitfire, "~> 0.1 and >= 0.1.3"},
|
|
{:sourceror, "~> 1.4"},
|
|
# can't use spark because spark depends on this
|
|
{:nimble_options, "~> 1.0"},
|
|
# 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]}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
credo: "credo --strict"
|
|
]
|
|
end
|
|
end
|