2019-07-02 02:48:51 +00:00
|
|
|
defmodule Temple.MixProject do
|
2019-04-15 01:44:39 +00:00
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
2019-07-02 02:48:51 +00:00
|
|
|
app: :temple,
|
|
|
|
name: "Temple",
|
2019-07-03 23:52:40 +00:00
|
|
|
description: "An HTML DSL for Elixir and Phoenix",
|
2019-08-13 22:28:28 +00:00
|
|
|
version: "0.2.0",
|
2019-07-04 00:36:04 +00:00
|
|
|
package: package(),
|
2019-04-26 20:59:43 +00:00
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
2019-06-29 22:24:17 +00:00
|
|
|
elixir: "~> 1.7",
|
2019-04-15 01:44:39 +00:00
|
|
|
start_permanent: Mix.env() == :prod,
|
2019-05-09 02:06:44 +00:00
|
|
|
deps: deps(),
|
2019-07-01 01:59:38 +00:00
|
|
|
aliases: aliases(),
|
2019-07-02 02:48:51 +00:00
|
|
|
source_url: "https://github.com/mhanberg/temple",
|
2019-05-09 02:06:44 +00:00
|
|
|
docs: [
|
2019-07-02 02:48:51 +00:00
|
|
|
main: "Temple",
|
2019-05-10 19:06:03 +00:00
|
|
|
extras: ["README.md"],
|
|
|
|
deps: [
|
|
|
|
phoenix_html: "https://hexdocs.pm/phoenix_html/"
|
|
|
|
]
|
2019-05-09 02:06:44 +00:00
|
|
|
],
|
|
|
|
dialyzer: [plt_add_apps: [:mix, :phoenix, :html_sanitize_ex]]
|
2019-04-15 01:44:39 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2019-04-26 20:59:43 +00:00
|
|
|
# Specifies which paths to compile per environment.
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
|
2019-04-15 01:44:39 +00:00
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
2019-07-02 02:48:51 +00:00
|
|
|
|
2019-07-04 00:36:04 +00:00
|
|
|
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
|
|
|
|
|
2019-07-01 01:59:38 +00:00
|
|
|
defp aliases do
|
|
|
|
[
|
|
|
|
docs: ["update_mdn_docs", "docs"]
|
|
|
|
]
|
|
|
|
end
|
2019-04-15 01:44:39 +00:00
|
|
|
|
|
|
|
defp deps do
|
|
|
|
[
|
2019-04-29 02:25:57 +00:00
|
|
|
{:phoenix_html, "~> 2.13"},
|
2019-06-01 04:02:49 +00:00
|
|
|
{:ecto, "~> 3.0", optional: true},
|
|
|
|
{:phoenix_ecto, "~> 4.0", optional: true},
|
2019-05-09 02:06:44 +00:00
|
|
|
{:ex_doc, "~> 0.0", only: [:dev], runtime: false},
|
2019-05-10 19:06:03 +00:00
|
|
|
{:html_sanitize_ex, "~> 1.3", only: [:dev, :test], runtime: false},
|
2019-04-29 02:25:57 +00:00
|
|
|
{:phoenix, "~> 1.4", optional: true},
|
2019-05-09 02:06:44 +00:00
|
|
|
{:plug, "~> 1.8", optional: true},
|
2019-04-29 02:25:57 +00:00
|
|
|
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false}
|
2019-04-15 01:44:39 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|