Current section
Files
Jump to
Current section
Files
live_view_ui
mix.exs
mix.exs
defmodule LiveViewUI.MixProject do
use Mix.Project
@version "0.0.5"
def project do
[
app: :live_view_ui,
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
# Docs
name: "LiveViewUI",
source_url: "https://github.com/rosaan/live_view_ui",
docs: [
main: "readme",
extras: ["README.md"]
],
description: """
A collection of UI components for Phoenix LiveView.
""",
package: package()
]
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
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
# UI related
{:phoenix_live_view, "~> 0.18"},
{:lucide_live_view, "~> 0.1.0"},
{:tails, "~> 0.1.10"},
{:cva, "~> 0.2"},
{:gettext, "~> 0.20"},
{:esbuild, "~> 0.8.1"},
# Docs
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
# Formatting
{:styler, "~> 0.11", only: [:dev, :test], runtime: false}
]
end
defp package do
[
maintainers: ["Rosaan Ramasamy"],
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/rosaan/live_view_ui"
},
files:
~w(lib priv) ++
~w(LICENSE.md mix.exs README.md .formatter.exs package.json)
]
end
defp aliases do
[
publish: ["live_view_ui.prerelease", "hex.publish"],
"publish:replace": ["live_view_ui.prerelease", "hex.publish --replace"],
"assets.build": [
"cmd --cd priv rm -rf static/",
"esbuild default",
"cmd cp ./assets/node_modules/preline/plugin.js ./priv/static/plugin.js"
],
"assets.watch": ["esbuild default --watch"]
]
end
end