Current section
Files
Jump to
Current section
Files
sql_formatter
mix.exs
mix.exs
defmodule SqlFormatter.MixProject do
use Mix.Project
def project do
[
app: :sql_formatter,
version: "1.0.0",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
source_url: "https://github.com/blatyo/sql_formatter",
aliases: [publish: ["hex.publish", &git_tag/1]]
]
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
[
{:rustler, "~> 0.31.0"},
{:ex_doc, "~> 0.37.3", only: :dev}
]
end
defp git_tag(_args) do
tag = "v" <> Mix.Project.config()[:version]
System.cmd("git", ["tag", tag])
System.cmd("git", ["push", "origin", tag])
end
defp description do
"""
A SQL formatter that provides consistent and readable formatting for SQL queries.
Built with Rust for performance and integrated with ExUnit for better SQL diff output in tests.
"""
end
defp package do
[
name: "sql_formatter",
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/blatyo/sql_formatter"
}
]
end
end