sloane.sh/mix.exs

54 lines
1.1 KiB
Elixir
Raw Normal View History

2024-02-16 16:09:35 -05:00
defmodule SloaneSH.MixProject do
use Mix.Project
def project do
[
app: :sloane_sh,
version: "0.1.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
2024-02-21 09:17:58 -05:00
deps: deps(),
aliases: aliases()
2024-02-16 16:09:35 -05:00
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
2024-02-16 22:28:13 -05:00
{:file_system, "~> 1.0.0"},
{:typed_struct, "~> 0.3.0"},
{:earmark, "~> 1.4"},
2024-02-17 08:09:30 -05:00
{:earmark_parser, "~> 1.4"},
{:plug, "~> 1.15"},
2024-02-21 09:17:58 -05:00
{:bandit, "~> 1.2"},
{:tailwind, "~> 0.2"},
2024-02-24 08:57:36 -05:00
{:toml, "~> 0.7"},
2024-02-24 10:32:07 -05:00
{:esbuild, "~> 0.8"},
2024-02-24 21:11:19 -05:00
{:timex, "~> 3.7"},
{:image, "~> 0.42"}
2024-02-21 09:17:58 -05:00
]
end
defp aliases do
[
2024-02-24 10:32:07 -05:00
"assets.deploy": [
"tailwind default --minify",
"esbuild default --minify --sourcemap --target=chrome58,firefox57,safari11,edge16"
],
2024-02-24 13:16:56 -05:00
"site.index": "cmd npx -y pagefind --site priv/output/",
"site.deploy": [
"site.build",
"site.index",
"assets.deploy"
]
2024-02-16 16:09:35 -05:00
]
end
end