-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
62 lines (57 loc) · 1.64 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
defmodule Terminus.MixProject do
use Mix.Project
def project do
[
app: :terminus,
version: "0.1.1",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Terminus",
description: "Crawl and subscribe to Bitcoin transaction events using Bitbus, Bitsocket and BitFS.",
source_url: "https://github.com/libitx/terminus",
docs: [
main: "Terminus",
groups_for_modules: [
"Internals": [
Terminus.HTTPStream,
Terminus.HTTP.Client,
Terminus.HTTP.Response
]
]
],
package: [
name: "terminus",
files: ~w(lib .formatter.exs mix.exs README.md LICENSE),
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/libitx/terminus"
}
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
applications: applications(Mix.env),
extra_applications: [:logger, :gen_stage, :mint, :castore]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:castore, "~> 0.1"},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:gen_stage, "~> 1.0"},
{:jason, "~> 1.2"},
{:mint, "~> 1.0"},
{:plug_cowboy, "~> 2.1", only: :test},
{:sse, "~> 0.4.0", only: :test}
]
end
defp applications(:test), do: applications(:default) ++ [:cowboy, :plug]
defp applications(_), do: []
defp elixirc_paths(:test), do: elixirc_paths(:default) ++ ["test/support"]
defp elixirc_paths(_), do: ["lib"]
end