Packages
live_svelte
0.18.0
0.18.0
0.18.0-rc0
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.0
0.15.0
0.15.0-rc.6
0.15.0-rc.5
0.15.0-rc.4
0.15.0-rc.3
0.15.0-rc.2
0.15.0-rc.1
0.14.1
0.14.0
0.13.3
0.13.3-rc.1
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.2
0.10.1
0.10.0
0.9.0
0.9.0-rc2
0.9.0-rc1
0.9.0-rc0
0.8.0
0.7.1
0.7.0
0.6.0
0.5.1
0.5.0
0.5.0-rc0
0.4.2
0.4.2-rc0
0.4.1
0.4.1-rc0
0.4.0
0.3.5
0.3.5-rc1
0.3.5-rc0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.3.0-rc1
0.3.0-rc0
0.2.0
0.2.0-rc1
0.2.0-rc0
0.1.0
0.1.0-rc5
0.1.0-rc4
0.1.0-rc3
0.1.0-rc2
0.1.0-rc1
0.1.0-rc0
E2E reactivity for Svelte and LiveView
Current section
Files
Jump to
Current section
Files
live_svelte
mix.exs
mix.exs
defmodule LiveSvelte.MixProject do
use Mix.Project
@version "0.18.0"
@repo_url "https://github.com/woutdp/live_svelte"
def project do
[
app: :live_svelte,
version: @version,
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
# Hex
description: "E2E reactivity for Svelte and LiveView",
package: package(),
# Docs
name: "LiveSvelte",
docs: [
name: "LiveSvelte",
source_ref: "v#{@version}",
source_url: @repo_url,
homepage_url: @repo_url,
main: "readme",
logo: "logo_3.png",
links: %{
"GitHub" => @repo_url,
"Sponsor" => "https://github.com/sponsors/woutdp"
},
extras: [
"README.md": [title: "LiveSvelte"],
# Getting Started
"guides/installation.md": [title: "Installation"],
"guides/upgrade_guide.md": [title: "Upgrade Guide"],
"guides/basic_usage.md": [title: "Basic Usage"],
# Core Usage
"guides/forms.md": [title: "Forms and Validation"],
"guides/uploads.md": [title: "File Uploads"],
"guides/streams.md": [title: "Phoenix Streams"],
"guides/ssr.md": [title: "Server-Side Rendering"],
"guides/configuration.md": [title: "Configuration"],
# Reference
"guides/api_reference.md": [title: "API Reference"],
# Advanced Topics
"guides/introduction.md": [title: "Introduction"],
"guides/testing.md": [title: "Testing"],
"guides/deployment.md": [title: "Deployment"],
# Help & Troubleshooting
"guides/troubleshooting.md": [title: "Troubleshooting"]
],
groups_for_extras: [
"Getting Started": ~r/guides\/(installation|upgrade_guide|basic_usage)/,
"Core Usage": ~r/guides\/(forms|uploads|streams|ssr|configuration)/,
Reference: ~r/guides\/api_reference/,
"Advanced Topics": ~r/guides\/(introduction|testing|deployment)/,
"Help & Troubleshooting": ~r/guides\/troubleshooting/
]
]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp package() do
[
maintainers: ["Wout De Puysseleir"],
licenses: ["MIT"],
links: %{
Changelog: @repo_url <> "/blob/master/CHANGELOG.md",
GitHub: @repo_url
},
files:
~w(assets/copy/tsconfig.json assets/js guides lib mix.exs package.json .formatter.exs LICENSE.md README.md CHANGELOG.md)
]
end
def application do
[
extra_applications: [:logger, :inets]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_doc, "~> 0.38", only: :dev, runtime: false, warn_if_outdated: true},
{:makeup_html, "~> 0.1.0", only: :dev, runtime: false},
{:easy_publish, "~> 0.2", only: [:dev], runtime: false},
{:igniter, "~> 0.6", optional: true},
{:phoenix_vite, "~> 0.4"},
{:jsonpatch, "~> 2.3"},
{:ecto, ">= 3.0.0", optional: true},
{:phoenix_ecto, ">= 4.0.0", optional: true},
{:jason, "~> 1.2", optional: true},
{:lazy_html, ">= 0.1.0", only: :test},
{:nodejs, "~> 3.1"},
{:telemetry, "~> 0.4 or ~> 1.0"},
{:phoenix, ">= 1.7.0"},
{:phoenix_html, ">= 3.3.1"},
{:phoenix_live_view, "~> 1.0"},
{:excoveralls, "~> 0.18", only: :test},
{:phx_new, "~> 1.7", only: :test, runtime: false}
]
end
defp aliases do
[
"release.patch": ["easy_publish.release patch --branch=master"],
"release.minor": ["easy_publish.release minor --branch=master"],
"release.major": ["easy_publish.release major --branch=master"]
]
end
end