This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/mix.exs

69 lines
1.6 KiB
Elixir
Raw Normal View History

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",
version: "0.9.0-rc.0",
2019-07-04 00:36:04 +00:00
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.13",
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-02 02:48:51 +00:00
source_url: "https://github.com/mhanberg/temple",
docs: docs()
2019-04-15 01:44:39 +00:00
]
end
# 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
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
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-04-15 01:44:39 +00:00
defp deps do
[
{:ex_doc, "~> 0.28.3", only: :dev, runtime: false},
{:phoenix_view, "~> 1.1.2", optional: true},
{:phoenix, "~> 1.6", optional: true}
2019-04-15 01:44:39 +00:00
]
end
end