defmodule FLHook.MixProject do use Mix.Project def project do [ app: :fl_hook_client, version: "0.2.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.travis": :test ], dialyzer: [plt_add_apps: [:ex_unit, :mix]], description: description(), package: package(), elixirc_paths: elixirc_paths(Mix.env()), # Docs name: "FLHook Client", source_url: "https://github.com/tlux/fl_hook_client", docs: [ main: "readme", extras: ["README.md"] ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end defp description do "A library that allows connecting to Freelancer game servers via an " <> "FLHook socket to run commands and receive events." end # Run "mix help deps" to learn about dependencies. defp deps do [ {:connection, "~> 1.1"}, {:credo, "~> 1.6", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.14", only: :test}, {:ex_doc, "~> 0.27", only: :dev}, {:liveness, "~> 1.0", only: :test}, {:mox, "~> 1.0", only: :test} ] end defp package do [ licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/tlux/fl_hook_client" } ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] end