-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
85 lines (77 loc) · 2.46 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
defmodule ExServer.MixProject do
use Mix.Project
@version "0.2.0"
def project do
[
app: :ex_server,
version: @version,
elixir: "~> 1.12",
name: "Mix Server",
source_url: "https://github.com/akoutmos/ex_server",
homepage_url: "https://hex.pm/packages/ex_server",
description: "This mix task allows you to start a server anywhere on the file system and serve files.",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
package: package()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {ExServer.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
name: "ex_server",
files: ~w(lib priv mix.exs README.md LICENSE),
licenses: ["MIT"],
maintainers: ["Alex Koutmos"],
links: %{
"GitHub" => "https://github.com/akoutmos/ex_server",
"Sponsor" => "https://github.com/sponsors/akoutmos"
}
]
end
# Specifies your project dependencies.
defp deps do
[
# Archive dependencies
{:phoenix, "~> 1.6.6"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_view, "~> 0.17.5"},
{:jason, "~> 1.3"},
{:plug_cowboy, "~> 2.5"},
# Development dependencies
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:floki, ">= 0.30.0", only: :test},
{:esbuild, "~> 0.3", only: :dev, runtime: Mix.env() == :dev},
{:tailwind, "~> 0.1", only: :dev, runtime: Mix.env() == :dev},
{:heex_formatter, github: "feliperenan/heex_formatter", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get"],
"assets.deploy": ["esbuild default --minify", "tailwind default --minify", "phx.digest"],
version: ["run -e \"IO.puts(Mix.Project.config[:version])\" --no-start"]
]
end
end