-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
69 lines (62 loc) · 1.6 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
58
59
60
61
62
63
64
65
66
67
68
69
defmodule Yesql.Mixfile do
use Mix.Project
def project do
[
app: :yesql,
version: "1.0.1",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
name: "Yesql",
description: "Using plain old SQL to query databases",
source_url: "https://github.com/lpil/yesql",
docs: docs(),
package: [
maintainers: ["Louis Pilfold"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/lpil/yesql"},
files: ~w(LICENCE README.md lib src/Elixir.Yesql.Tokenizer.xrl mix.exs)
]
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"guides/ecto_configuration.md",
"guides/postgrex_configuration.md"
],
groups_for_extras: [
Configuration: Path.wildcard("guides/*.md")
]
]
end
def application do
case Mix.env() do
:test ->
[
mod: {YesqlTest.Application, []},
extra_applications: [:logger, :runtime_tools]
]
_ ->
[extra_applications: []]
end
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Postgresql driver
{:postgrex, "~> 0.15", optional: true},
# Database abstraction
{:ecto_sql, "~> 3.4", optional: true},
{:ecto, "~> 3.4", optional: true},
# Automatic testing tool
{:mix_test_watch, ">= 0.0.0", only: :dev},
# Documentation generator
{:ex_doc, "~> 0.23", only: :dev}
]
end
end