aboutsummaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2016-10-30 21:45:46 -0600
committerkballou <kballou@devnulllabs.io>2016-10-30 21:45:46 -0600
commit34ad7d93000824dd764a7297a91cda831aa9e89a (patch)
tree3b66791929baf6d06f7de66f620403988b878e71 /mix.exs
downloadoctochat-34ad7d93000824dd764a7297a91cda831aa9e89a.tar.gz
octochat-34ad7d93000824dd764a7297a91cda831aa9e89a.tar.xz
Octochat: Initial commit
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs44
1 files changed, 44 insertions, 0 deletions
diff --git a/mix.exs b/mix.exs
new file mode 100644
index 0000000..1605814
--- /dev/null
+++ b/mix.exs
@@ -0,0 +1,44 @@
+defmodule Octochat.Mixfile do
+ use Mix.Project
+
+ def project do
+ [app: :octochat,
+ description: "Demo Application for How Swapping Code",
+ package: package(),
+ version: "0.1.0",
+ elixir: "~> 1.3",
+ build_embedded: Mix.env == :prod,
+ start_permanent: Mix.env == :prod,
+ docs: docs(),
+ deps: deps()]
+ end
+
+ def application do
+ [applications: [:logger]]
+ end
+
+ defp deps do
+ [{:credo, "~> 0.5", only: :credo},
+ {:distillery, "~> 0.10", only: [:dev, :prod]},
+ {:earmark, "~> 0.2", only: :docs},
+ {:ex_doc, "~> 0.12", only: :docs}]
+ end
+
+ defp package do
+ [maintainers: ["Kenny Ballou"],
+ licenses: ["GPL-3.0"],
+ links: %{"Git" => "https://git.devnulllabs.io/octochat.git",
+ "GitHub" => "https://github.com/kennyballou/octochat"},
+ 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