diff options
author | kballou <kballou@devnulllabs.io> | 2017-11-16 22:31:52 -0700 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2017-11-24 09:54:20 -0700 |
commit | 6abe63d232696a2805eaa6c44e4f773ad96aa7a8 (patch) | |
tree | f1c1a6bba819575d9b001d92acdc4be39b922f09 /mix.exs | |
download | octonetcat-6abe63d232696a2805eaa6c44e4f773ad96aa7a8.tar.gz octonetcat-6abe63d232696a2805eaa6c44e4f773ad96aa7a8.tar.xz |
octonetcat: initial commit
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 50 |
1 files changed, 50 insertions, 0 deletions
@@ -0,0 +1,50 @@ +defmodule Octonetcat.Mixfile do + use Mix.Project + + def project do + [ + app: :octonetcat, + description: "Demo Echo Server Application", + package: package(), + version: "0.1.0", + 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] + ] + 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 |