defmodule Mastomation.MixProject do use Mix.Project def project do [ app: :mastomation, version: "0.1.4", description: "CLI to inspect, export, and delete Mastodon posts safely.", elixir: "~> 1.19", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), escript: escript(), docs: docs(), package: package(), source_url: "https://codeberg.org/maikelthedev/mastomation", homepage_url: "https://codeberg.org/maikelthedev/mastomation" ] end def escript do [ main_module: Mastomation.CLI, name: :mastomation, description: "Mastomation CLI tool" ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} {:req, "~> 0.5"}, {:optimus, "~> 0.2"}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:mimic, "~> 2.3", only: :test} ] end defp docs do [ main: "readme", extras: ["README.md", "CHANGELOG.md", "LICENSE.md", "DEVELOPMENT.md"], assets: %{"assets" => "assets"} ] end defp package do [ name: "mastomation", files: [ "lib", "completions", "assets", "mix.exs", "README.md", "LICENSE.md", "CHANGELOG.md", "SEMVER.md" ], licenses: ["AGPL-3.0-only"], links: %{ "Codeberg" => "https://codeberg.org/maikelthedev/mastomation", "Changelog" => "https://codeberg.org/maikelthedev/mastomation/src/branch/main/CHANGELOG.md" }, maintainers: ["Miguel Frias Mosquea"] ] end end