-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
75 lines (68 loc) · 1.91 KB
/
mix.exs
File metadata and controls
75 lines (68 loc) · 1.91 KB
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
70
71
72
73
74
75
defmodule LocalhostRun.MixProject do
use Mix.Project
def project do
[
app: :localhost_run,
version: "0.1.0",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
name: "localhost.run",
source_url: "https://github.com/erlef/localhost-run",
docs: &docs/0,
description: "Expose local ports to the internet via SSH tunnels using Elixir and localhost.run.",
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test,
"coveralls.multiple": :test
]
]
end
defp package do
[
maintainers: ["Jonatan Männchen"],
files: [
"lib",
"LICENSE*",
"mix.exs",
"README*"
],
licenses: ["Apache-2.0"],
links: %{"Github" => "https://github.com/erlef/localhost-run"}
]
end
defp docs do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[
main: "readme",
source_ref: ref,
extras: ["README.md"]
]
end
def application do
[
extra_applications: [:logger, :ssh]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
defp deps do
# styler:sort
[
{:bandit, "~> 1.6", only: [:dev, :test]},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.37.3", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18.5", only: :test, runtime: false},
{:plug, "~> 1.18", only: [:dev, :test]},
{:req, "~> 0.5.10", only: [:dev, :test]},
{:styler, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
end