defmodule Machinery.Mixfile do use Mix.Project @source_url "https://github.com/mraaroncruz/machinery" @version "1.2.0" def project do [ app: :machinery_fork, version: @version, elixir: "~> 1.14", compilers: Mix.compilers(), deps: deps(), docs: docs(), package: package() ] end def application do [ mod: {Machinery, []} ] end defp deps do [ {:ecto, "~> 3.0", only: :test}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false} ] end defp package() do [ description: "Machinery is a State Machine library for structs in general. " <> "It supports guard clauses, callbacks and integrate out of the box " <> "with Phoenix apps.", maintainers: ["João M. D. Moura", "Aaron Cruz"], licenses: ["Apache-2.0"], links: %{ "Changelog" => "https://hexdocs.pm/machinery_fork/changelog.html", "GitHub" => @source_url } ] end defp docs do [ extras: [ "CHANGELOG.md": [], "CONTRIBUTING.md": [], "CODE_OF_CONDUCT.md": [title: "Code of Conduct"], LICENSE: [title: "License"], "README.md": [title: "Overview"] ], main: "readme", assets: "assets", source_url: @source_url, formatters: ["html"] ] end end