Packages

Highly customizable analytics for Phoenix LiveView applications

Current section

Files

Jump to
lyt mix.exs
Raw

mix.exs

defmodule Lyt.MixProject do
use Mix.Project
@version "0.0.3"
@source_url "https://github.com/sufficient-software/lyt"
def project do
[
app: :lyt,
version: @version,
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs(),
# Hex.pm metadata
name: "Lyt",
description: "Highly customizable analytics for Phoenix LiveView applications",
package: package(),
source_url: @source_url,
homepage_url: @source_url
]
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
[
{:telemetry, "~> 1.3.0"},
{:ua_inspector, "~> 3.0"},
{:jason, "~> 1.0"},
{:ecto, "~> 3.12"},
{:ecto_sql, "~> 3.12"},
{:plug, "~> 1.17"},
{:ecto_sqlite3, ">= 0.0.0", optional: true},
{:postgrex, ">= 0.0.0", optional: true},
{:myxql, ">= 0.0.0", optional: true},
{:ecto_duckdb, ">= 0.0.0", optional: true},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
# Test dependencies for Phoenix/LiveView integration tests
{:phoenix, "~> 1.7", only: :test},
{:phoenix_live_view, "~> 1.0", only: :test},
{:floki, "~> 0.36", only: :test},
{:lazy_html, "~> 0.1", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md",
"guides/installation.md",
"CHANGELOG.md",
"LICENSE"
],
groups_for_extras: [
Guides: [
"guides/installation.md"
]
],
groups_for_modules: [
Core: [
Lyt,
Lyt.Telemetry,
Lyt.Plug
],
Schemas: [
Lyt.Session,
Lyt.Event
],
Infrastructure: [
Lyt.Repo,
Lyt.EventQueue,
Lyt.Migration
]
]
]
end
defp package do
[
maintainers: ["Sufficient"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url
},
files: ~w(lib priv/static .formatter.exs mix.exs README.md LICENSE CHANGELOG.md)
]
end
end