-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmix.exs
87 lines (80 loc) · 2.07 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
defmodule ScenicNew.MixProject do
use Mix.Project
@version "0.11.0"
@github "https://github.com/ScenicFramework/scenic_new"
def project do
[
app: :scenic_new,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: [
main: "Mix.Tasks.Scenic.New"
],
description: description(),
package: [
contributors: ["Boyd Multerer"],
maintainers: ["Boyd Multerer"],
licenses: ["Apache-2.0"],
links: %{github: @github},
files: [
"templates/**/*.jpg",
"templates/**/gitignore",
"templates/**/*.exs",
# "templates/**/*.config",
"templates/**/*.txt",
"templates/**/*.jpg",
# "templates/**/*.png",
"templates/**/*.eex",
"config",
# "test",
"mix.exs",
".formatter.exs",
".gitignore",
"LICENSE",
"README.md",
"lib/**/*.ex"
]
],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test
],
test_coverage: [tool: ExCoveralls]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:eex]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.19", only: [:dev, :docs], runtime: false},
{:excoveralls, "~> 0.17", only: :test},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
build: [&build_releases/1]
]
end
defp build_releases(_) do
Mix.Tasks.Compile.run([])
Mix.Tasks.Archive.Build.run([])
Mix.Tasks.Archive.Build.run(["--output=scenic_new.ez"])
File.rename("scenic_new.ez", "./archives/scenic_new.ez")
File.rename("scenic_new-#{@version}.ez", "./archives/scenic_new-#{@version}.ez")
end
defp description() do
"""
ScenicNew - Mix task to generate a starter application
"""
end
end