2019-04-15 01:44:39 +00:00
|
|
|
defmodule Dsl.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :dsl,
|
|
|
|
version: "0.1.0",
|
2019-04-26 20:59:43 +00:00
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
2019-04-15 01:44:39 +00:00
|
|
|
elixir: "~> 1.8",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2019-05-09 02:06:44 +00:00
|
|
|
deps: deps(),
|
|
|
|
name: "Dsl",
|
|
|
|
source_url: "https://github.com/mhanberg/cogent",
|
|
|
|
docs: [
|
|
|
|
main: "Dsl",
|
|
|
|
extras: ["README.md"]
|
|
|
|
],
|
|
|
|
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
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2019-04-29 02:25:57 +00:00
|
|
|
{:phoenix_html, "~> 2.13"},
|
2019-05-09 02:06:44 +00:00
|
|
|
{:ex_doc, "~> 0.0", only: [:dev], runtime: false},
|
|
|
|
{:html_sanitize_ex, "~> 1.3", only: [:dev], 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
|