aboutsummaryrefslogtreecommitdiffstats
path: root/mix.exs
blob: f535b115bcf70b3b6fab96a3754d2b9f3dd841c0 (plain)
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
76
77
78
79
80
81
82
83
84
defmodule Lkn.Mixfile do
  use Mix.Project

  def project do
    [
      app:             :lkn_core,
      name:            "lkn-core",
      version:         "0.1.0",
      elixir:          "~> 1.5",
      build_embedded:  Mix.env == :prod,
      start_permanent: Mix.env == :prod,
      source_url:      "https://nest.pijul.com/lthms/lkn-core",
      description:     description(),
      deps:            deps(),
      package:         package(),
      test_coverage:   [
        tool: ExCoveralls
      ],
      preferred_cli_env: [
        "coveralls":        :test,
        "coveralls.detail": :test,
        "coveralls.post":   :test,
        "coveralls.html":   :test,
      ],
      dialyzer:        [
        flags: [
          :error_handling,
          :race_conditions,
        ],
      ],
    ]
  end

  def application do
    [
      extra_applications: [
        :logger,
      ],
      mod:                {Lkn.Core, []},
    ]
  end

  defp deps do
    [
      # runtime
      {:uuid, "~> 1.1"},
      {:lkn_prelude, "~> 0.1.2"},
      {:beacon,      "~> 1.1"},

      # development
      {:credo,       "~> 0.8",  only: [:dev, :test], runtime: false},
      {:dialyxir,    "~> 0.5",  only: :dev,          runtime: false},
      {:ex_doc,      "~> 0.16", only: :dev,          runtime: false},
      {:excoveralls, "~> 0.7",  only: :test,         runtime: false},
    ]
  end

  defp description do
    """
    lkn core
    """
  end

  defp package do
    [
      name: :lkn_core,
      files: [
        "lib",
        "mix.exs",
        "README.md",
        "LICENSE",
      ],
      maintainers: [
        "Thomas Letan"
      ],
      licenses: [
        "AGPL 3.0"
      ],
      links: %{
        "Pijul Nest" => "https://nest.pijul.com/lthms/lkn-core",
      },
    ]
  end
end