-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmix.exs
46 lines (42 loc) · 1.26 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
defmodule StationUI.MixProject do
use Mix.Project
def project do
[
app: :station_ui,
version: "0.1.0",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env(), Application.get_env(:station_ui, :use_source_components, false)),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "StationUI",
package: [
organization: "dockyard",
maintainers: [
"DockYard"
],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/DockYard/station-ui"},
files: ~w(lib sources mix.exs LICENSE.md README.md)
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test, true), do: ["lib", "sources/lib", "test/support"]
defp elixirc_paths(:test, false), do: ["lib", "test/support"]
defp elixirc_paths(_, true), do: ["lib", "sources/lib"]
defp elixirc_paths(_, false), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:gettext, "~> 0.20"},
{:phoenix, "~> 1.7.11"},
{:phoenix_live_view, "~> 1.0"},
{:credo, "~> 1.7.10", only: [:dev, :test], runtime: false},
{:tailwind_formatter, "~> 0.3.5", only: [:dev, :test], runtime: false}
]
end
end