defmodule Stella.MixProject do use Mix.Project def project do [ app: :stella, version: "0.3.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), aliases: aliases(), docs: [ main: "Stella", extras: ["README.md"] ] ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end defp aliases do [docs: ["docs", ©_images/1]] end defp copy_images(_) do File.cp_r("assets", "doc/assets", fn source, destination -> IO.gets("Overwriting #{destination} by #{source}. Type y to confirm. ") == "y\n" end) File.cp_r("doc", "docs", fn _source, _destination -> true end) end # Run "mix help deps" to learn about dependencies. defp deps do [ {:mix_test_watch, "~> 1.0", only: :dev, runtime: false}, {:ex_doc, "~> 0.22", only: :dev, runtime: false} ] end defp description() do "Elixir library providing implementations of the most famous algorithms, data structures and math functions, out of the box" end defp package() do [ name: "stella", licenses: ["Apache-2.0"], links: %{"GitHub" => "https://github.com/RafalKostecki/stella"} ] end end