defmodule Temple.MixProject do use Mix.Project def project do [ app: :temple, name: "Temple", description: "An HTML DSL for Elixir and Phoenix", version: "0.9.0-rc.0", package: package(), elixirc_paths: elixirc_paths(Mix.env()), elixir: "~> 1.13", start_permanent: Mix.env() == :prod, deps: deps(), source_url: "https://github.com/mhanberg/temple", docs: docs() ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end defp docs() do [ main: "Temple", extras: [ "README.md", "guides/getting-started.md", "guides/your-first-template.md", "guides/components.md", "guides/migrating/0.8-to-0.9.md" ], groups_for_extras: groups_for_extras() ] end defp groups_for_extras do [ Guides: ~r/guides\/[^\/]+\.md/, Migrating: ~r/guides\/migrating\/.?/ ] end defp package do [ maintainers: ["Mitchell Hanberg"], licenses: ["MIT"], links: %{github: "https://github.com/mhanberg/temple"}, files: ~w(lib priv CHANGELOG.md LICENSE mix.exs README.md .formatter.exs) ] end defp deps do [ {:ex_doc, "~> 0.28.3", only: :dev, runtime: false}, {:phoenix_view, "~> 1.1.2", optional: true}, {:phoenix, "~> 1.6", optional: true} ] end end