2017-04-08 01:30:17 -04:00
|
|
|
defmodule Hunter.Mixfile do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
2017-10-26 15:16:42 -04:00
|
|
|
[
|
|
|
|
app: :hunter,
|
2019-03-20 10:54:18 -04:00
|
|
|
version: "0.5.1",
|
2019-03-20 01:11:48 -04:00
|
|
|
elixir: "~> 1.8",
|
2017-10-26 15:16:42 -04:00
|
|
|
docs: docs(),
|
|
|
|
package: package(),
|
|
|
|
source_url: "https://github.com/milmazz/hunter",
|
|
|
|
description: "Elixir client for Mastodon, a GNU social-compatible micro-blogging service",
|
|
|
|
build_embedded: Mix.env() == :prod,
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2019-03-19 23:44:05 -04:00
|
|
|
elixirc_paths: ["lib"],
|
2019-03-20 01:24:51 -04:00
|
|
|
elixirc_options: [warnings_as_errors: true],
|
2019-03-20 00:54:03 -04:00
|
|
|
deps: deps(),
|
|
|
|
dialyzer: [
|
|
|
|
plt_add_apps: [:mix, :ex_unit],
|
|
|
|
check_plt: true,
|
|
|
|
flags: [:error_handling, :race_conditions, :underspecs]
|
|
|
|
]
|
2017-10-26 15:16:42 -04:00
|
|
|
]
|
2017-04-08 01:30:17 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# Configuration for the OTP application
|
|
|
|
#
|
|
|
|
# Type "mix help compile.app" for more information
|
|
|
|
def application do
|
|
|
|
# Specify extra applications you'll use from Erlang/Elixir
|
|
|
|
[extra_applications: [:logger, :httpoison]]
|
|
|
|
end
|
|
|
|
|
|
|
|
defp deps do
|
2017-10-26 15:16:42 -04:00
|
|
|
[
|
2019-01-21 18:02:20 -05:00
|
|
|
{:httpoison, "~> 1.5"},
|
|
|
|
{:poison, "~> 4.0"},
|
2019-03-19 13:19:05 -04:00
|
|
|
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
|
2019-03-19 23:44:05 -04:00
|
|
|
{:dialyxir, "~> 1.0.0-rc.3", only: :dev, runtime: false},
|
2019-03-20 00:54:03 -04:00
|
|
|
{:mox, "~> 0.5", only: :test},
|
|
|
|
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false}
|
2017-10-26 15:16:42 -04:00
|
|
|
]
|
2017-04-08 01:30:17 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
2017-10-26 15:16:42 -04:00
|
|
|
[
|
|
|
|
licenses: ["Apache 2.0"],
|
|
|
|
maintainers: ["Milton Mazzarri"],
|
|
|
|
links: %{"GitHub" => "https://github.com/milmazz/hunter"}
|
|
|
|
]
|
2017-04-08 01:30:17 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
defp docs do
|
2017-10-26 15:16:42 -04:00
|
|
|
[
|
|
|
|
extras: [
|
|
|
|
"README.md": [title: "README"],
|
|
|
|
"CONTRIBUTING.md": [title: "How to contribute"],
|
|
|
|
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
|
|
|
|
"CHANGELOG.md": [title: "Changelog"]
|
|
|
|
],
|
|
|
|
main: "readme"
|
|
|
|
]
|
2017-04-08 01:30:17 -04:00
|
|
|
end
|
|
|
|
end
|