forked from fika-lang/fika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
48 lines (42 loc) · 1.17 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
defmodule Fika.MixProject do
use Mix.Project
@app :fika
def project do
[
app: @app,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
escript: [main_module: Fika.Cli],
deps: deps(),
xref: [exclude: [:router]],
elixirc_paths: elixirc_paths(Mix.env()),
releases: [{@app, release()}],
preferred_cli_env: [release: :prod]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[extra_applications: [:logger], mod: {Fika.Application, []}]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nimble_parsec, "~> 1.1.0"},
{:plug_cowboy, "~> 2.0"},
{:bakeware, github: "spawnfest/bakeware", tag: "v0.1.0", sparse: "bakeware", runtime: false}
]
end
defp release do
[
overwrite: true,
cookie: "#{@app}_cookie",
steps: [:assemble, &Bakeware.assemble/1, &Fika.Deploy.copy_files/1],
strip_beams: Mix.env() == :prod,
quiet: true
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
end