sloane.sh/mix.exs
2024-02-24 21:25:30 -05:00

53 lines
1.1 KiB
Elixir

defmodule SloaneSH.MixProject do
use Mix.Project
def project do
[
app: :sloane_sh,
version: "0.1.0",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
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
[
{:file_system, "~> 1.0.0"},
{:typed_struct, "~> 0.3.0"},
{:earmark, "~> 1.4"},
{:earmark_parser, "~> 1.4"},
{:plug, "~> 1.15"},
{:bandit, "~> 1.2"},
{:tailwind, "~> 0.2"},
{:toml, "~> 0.7"},
{:esbuild, "~> 0.8"},
{:timex, "~> 3.7"},
{:image, "~> 0.42"}
]
end
defp aliases do
[
"assets.deploy": [
"tailwind default --minify",
"esbuild default --minify --sourcemap --target=chrome58,firefox57,safari11,edge16"
],
"site.index": "cmd npx -y pagefind --site priv/output/",
"site.deploy": [
"site.build",
"site.index",
"assets.deploy"
]
]
end
end