-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmix.exs
More file actions
52 lines (45 loc) · 1.19 KB
/
mix.exs
File metadata and controls
52 lines (45 loc) · 1.19 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
defmodule VersionTasks.Mixfile do
use Mix.Project
@app :version_tasks
@git_url "https://github.com/aforward/version_tasks"
@home_url @git_url
@version "0.12.0"
@deps [
{:mix_test_watch, "~> 0.3", only: :dev, runtime: false},
{:git_cli, "~> 0.2"},
{:ex_doc, ">= 0.0.0", only: [:dev, :test]}
]
@package [
name: @app,
files: ["lib", "mix.exs", "README*", "README*", "LICENSE*"],
maintainers: ["Andrew Forward"],
licenses: ["MIT"],
links: %{"GitHub" => @git_url}
]
# ------------------------------------------------------------
def project do
in_production = Mix.env() == :prod
[
app: @app,
version: @version,
elixir: "~> 1.11",
name: "VersionTasks",
description: "A suite of mix tasks for managing your libs version numbers with git and hex",
package: @package,
source_url: @git_url,
homepage_url: @home_url,
docs: [main: "VersionTasks", extras: ["README.md"]],
build_embedded: in_production,
start_permanent: in_production,
deps: @deps
]
end
def application do
[
# built-in apps that need starting
extra_applications: [
:logger
]
]
end
end