Current section
Files
Jump to
Current section
Files
mastomation
mix.exs
mix.exs
defmodule Mastomation.MixProject do
use Mix.Project
def project do
[
app: :mastomation,
version: "0.1.0",
description: "CLI to inspect, export, and delete Mastodon posts safely.",
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: escript(),
package: package(),
source_url: "https://codeberg.org/maikelthedev/mastomation",
homepage_url: "https://codeberg.org/maikelthedev/mastomation"
]
end
def escript do
[main_module: Mastomation.CLI]
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},
{:exvcr, "~> 0.17.1", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
defp package do
[
name: "mastomation",
files: [
"lib",
"completions",
"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