Packages

A "soft deprecated" tool for composing workflows with your Ash Framework resources

Current section

Files

Jump to
ash_flow mix.exs
Raw

mix.exs

defmodule AshFlow.MixProject do
use Mix.Project
@version "0.1.1"
@description """
A "soft deprecated" tool for composing workflows with your Ash Framework resources
"""
def project do
[
app: :ash_flow,
version: @version,
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
dialyzer: [plt_add_apps: [:mix]],
package: package(),
aliases: aliases(),
description: @description,
source_url: "https://github.com/ash-project/ash",
homepage_url: "https://github.com/ash-project/ash"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test) do
["lib", "test/support"]
end
defp elixirc_paths(_), do: ["lib"]
defp package do
[
name: :ash_flow,
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE*
CHANGELOG* documentation),
links: %{
GitHub: "https://github.com/ash-project/ash_flow",
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/topics/flows.md",
"documentation/dsls/DSL:-Ash.Flow.md"
],
groups_for_modules: [
Introspection: [
Ash.Flow.Info,
~r/Ash.Flow.Step/,
~r/Ash.Flow/
]
],
source_ref: "v#{@version}",
extra_section: "GUIDES",
nest_modules_by_prefix: [
Ash.Flow.Transformers
],
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
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ash, "~> 3.0"},
# Used in generating flow charts
{:earmark, "~> 1.4"},
# Dev/Test dependencies
{:picosat_elixir, "~> 0.2.3", only: [:dev, :test]},
{:eflame, "~> 1.0", only: [:dev, :test]},
{: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
defp aliases do
[
sobelow: "sobelow --skip",
credo: "credo --strict",
docs: [
"spark.cheat_sheets",
"docs",
"spark.replace_doc_links",
"spark.cheat_sheets_in_search"
],
"spark.cheat_sheets_in_search": "spark.cheat_sheets_in_search --extensions Ash.Flow.Dsl",
"spark.formatter": "spark.formatter --extensions Ash.Flow.Dsl",
"spark.cheat_sheets": "spark.cheat_sheets --extensions Ash.Flow.Dsl"
]
end
end