-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
57 lines (51 loc) · 1.45 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
defmodule Bubbles.Url.Mixfile do
use Mix.Project
def project do
[
app: :bubbles_url,
version: "0.1.2",
description: "Elixir library for managing URLs as Ecto schema",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
name: "MyApp",
source_url: "https://github.com/elixir-bubbles/bubbles_url",
docs: [
main: "Bubbles.Url"
# logo: "path/to/logo.png"
],
package: [
licenses: ["MIT"],
files: ["lib", "mix.exs", "README*"],
maintainers: ["Martin Vrkljan"],
links: %{"GitHub" => "https://github.com/elixir-bubbles/bubbles_url"}
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: applications(Mix.env())
]
end
defp applications(:test), do: [:postgrex, :ecto, :logger]
defp applications(_), do: [:logger]
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 2.2"},
{:ex_doc, "~> 0.18.0", only: :dev, runtime: false},
{:postgrex, "~> 0.11.0 or ~> 0.12.0 or ~> 0.13.0", optional: true}
]
end
end