53 lines
1.3 KiB
Elixir
53 lines
1.3 KiB
Elixir
defmodule Lain.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :lain,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.14",
|
|
start_permanent: Mix.env() == :prod,
|
|
aliases: aliases(),
|
|
deps: deps(),
|
|
escript: [main_module: Lain.CLI, include_priv_for: [:castore]]
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
mod: {Lain.Application, []},
|
|
extra_applications: [:castore, :logger]
|
|
]
|
|
end
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
{:yaml_elixir, "~> 2.9.0"},
|
|
{:esbuild, "~> 0.7.1"},
|
|
{:tailwind, "~> 0.2.1"},
|
|
{:phoenix_live_view, "~> 1.0.0"},
|
|
{:rustler, "~> 0.29.1"},
|
|
{:tree_sitter, "~> 0.0.3"},
|
|
{:earmark_parser, "~> 1.4"},
|
|
{:earmark, "~> 1.4"},
|
|
{:floki, "~> 0.36"},
|
|
{:html_sanitize_ex, "~> 1.4"},
|
|
{:phoenix_html, "~> 3.3.2"},
|
|
{:sitemapper, "~> 0.7.0"},
|
|
{:bandit, "~> 1.0"},
|
|
{:plug, "~> 1.16.1"},
|
|
{:castore, "~> 1.0"}
|
|
# {:dep_from_hexpm, "~> 0.3.0"},
|
|
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
|
|
]
|
|
end
|
|
|
|
def aliases() do
|
|
[
|
|
"assets.build": ["esbuild default --minify", "tailwind default --minify"],
|
|
serve: ["do esbuild serve --serve + tailwind default --watch"]
|
|
]
|
|
end
|
|
end
|