defmodule Octonetcat.Mixfile do use Mix.Project def project do [ app: :octonetcat, description: "Demo Echo Server Application", package: package(), version: "0.3.3", elixir: "~> 1.5", start_permanent: Mix.env == :prod, docs: docs(), deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {Octonetcat.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:credo, "~> 0.8.8", only: [:dev]}, {:distillery, "~> 1.5.2", only: [:dev, :prod]}, {:earmark, "~> 1.2.3", only: :docs}, {:ex_doc, "~> 0.18.1", only: :docs} ] end defp package do [maintainers: ["Kenny Ballou"], licenses: ["GPL-3.0"], links: %{"Git" => "https://git.devnulllabs.io/octonetcat.git", "GitHub" => "https://github.com/kennyballou/octonetcat"}, files: ~w(mix.exs README.md LICENSE lib)] end defp docs do [extras: ["README.md" | get_markdown_files("docs")]] end defp get_markdown_files(path) do :filelib.fold_files(path, ".*", true, fn(file, acc) -> [file|acc] end, []) |> Enum.filter(fn(file) -> String.ends_with?(file, ".md") end) end end