Current section

Files

Jump to
Raw

mix.exs

defmodule FlyPostgres.MixProject do
use Mix.Project
def project do
[
app: :fly_postgres,
version: "0.1.13",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "Fly Postgres",
source_url: "https://github.com/superfly/fly_postgres_elixir",
description: description(),
deps: deps(),
package: package(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:fly_rpc, "~> 0.1.5"},
{:postgrex, ">= 0.0.0"},
{:ex_doc, "~> 0.25", only: :dev}
]
end
defp description do
"""
Library for working with local read-replica postgres databases and performing writes through RPC calls to other nodes in the primary Fly.io region.
"""
end
defp docs do
[
main: "readme",
# logo: "path/to/logo.png",
extras: ["README.md"]
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG*"],
maintainers: ["Mark Ericksen"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/superfly/fly_postgres_elixir"}
]
end
end