2023-04-19 10:23:04 +12:00
|
|
|
defmodule Reactor.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
2023-04-19 14:13:10 +12:00
|
|
|
@version "0.1.0"
|
|
|
|
@description "An asynchronous, graph-based execution engine"
|
|
|
|
|
2023-04-19 10:23:04 +12:00
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :reactor,
|
2023-04-19 14:13:10 +12:00
|
|
|
version: @version,
|
|
|
|
elixir: "~> 1.13",
|
2023-04-19 10:23:04 +12:00
|
|
|
start_permanent: Mix.env() == :prod,
|
2023-04-19 14:13:10 +12:00
|
|
|
deps: deps(),
|
2023-04-19 10:30:26 +12:00
|
|
|
package: package(),
|
2023-04-19 14:13:10 +12:00
|
|
|
description: @description,
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
aliases: aliases(),
|
|
|
|
source_url: "https://github.com/ash-project/reactor",
|
|
|
|
homepage_url: "https://github.com/ash-project/reactor",
|
2023-05-10 16:27:18 +12:00
|
|
|
dialyzer: [plt_add_apps: [:mix]],
|
|
|
|
docs: [
|
|
|
|
main: "readme",
|
|
|
|
extras: ["README.md"],
|
|
|
|
formatters: ["html"]
|
|
|
|
]
|
2023-04-19 10:23:04 +12:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2023-04-19 10:30:26 +12:00
|
|
|
defp package do
|
|
|
|
[
|
2023-04-19 14:13:10 +12:00
|
|
|
name: :reactor,
|
|
|
|
files: ~w[lib .formatter.exs mix.exs README* LICENSE* CHANGELOG* documentation],
|
2023-04-19 10:30:26 +12:00
|
|
|
licenses: ["MIT"],
|
|
|
|
links: %{
|
|
|
|
GitHub: "https://github.com/ash-project/reactor"
|
2023-05-10 16:27:18 +12:00
|
|
|
},
|
|
|
|
maintainers: [
|
|
|
|
"James Harton <james@harton.nz>",
|
|
|
|
"Zach Daniel <zach@zachdaniel.dev>"
|
|
|
|
],
|
|
|
|
source_url: "https://github.com/ash-project/reactor"
|
2023-04-19 10:30:26 +12:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2023-04-19 10:23:04 +12:00
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
2023-05-10 16:27:18 +12:00
|
|
|
extra_applications: [:logger],
|
|
|
|
mod: {Reactor.Application, []}
|
2023-04-19 10:23:04 +12:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2023-05-10 16:27:18 +12:00
|
|
|
{:spark, "~> 1.0"},
|
|
|
|
{:libgraph, "~> 0.16"},
|
|
|
|
|
2023-04-19 14:13:10 +12:00
|
|
|
# Dev/Test dependencies
|
|
|
|
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
2023-05-10 16:27:18 +12:00
|
|
|
{:ex_doc, "~> 0.22", only: [:dev, :test], runtime: false},
|
|
|
|
{:ex_check, "~> 0.12.0", only: [:dev, :test]},
|
2023-04-19 14:13:10 +12:00
|
|
|
{:git_ops, "~> 2.4.4", only: [:dev, :test]},
|
2023-05-10 16:27:18 +12:00
|
|
|
{:mimic, "~> 1.7", only: :test},
|
|
|
|
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false}
|
2023-04-19 14:13:10 +12:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2023-05-10 16:27:18 +12:00
|
|
|
defp elixirc_paths(env) when env in ~w[dev test]a do
|
2023-04-19 14:13:10 +12:00
|
|
|
elixirc_paths(:prod) ++ ["test/support"]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
|
|
|
defp aliases do
|
|
|
|
[
|
|
|
|
sobelow: "sobelow --skip",
|
2023-05-10 16:27:18 +12:00
|
|
|
credo: "credo --strict",
|
|
|
|
"spark.formatter": "spark.formatter --extensions Reactor.Dsl"
|
2023-04-19 10:23:04 +12:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|