diff --git a/mix.exs b/mix.exs index f9a9199..9b5cb21 100644 --- a/mix.exs +++ b/mix.exs @@ -14,6 +14,7 @@ defmodule Exile.MixProject do make_targets: ["all"], make_clean: ["clean"], deps: deps(), + aliases: aliases(), # Package package: package(), @@ -61,4 +62,14 @@ defmodule Exile.MixProject do {:dialyxir, "~> 1.0", only: [:dev], runtime: false} ] end + + defp aliases do + [docs: ["docs", ©_images/1]] + end + + defp copy_images(_) do + File.cp_r("./images", "./doc/images/", fn source, destination -> + IO.gets("Overwriting #{destination} by #{source}. Type y to confirm. ") == "y\n" + end) + end end