Packages

Turn existing PostgreSQL database tables into Ecto migrations and schemas.

Current section

Files

Jump to
Raw

mix.exs

defmodule PostgresToEcto.MixProject do
  use Mix.Project

  @version "0.1.2"

  def project do
    [
      app: :postgres_to_ecto,
      version: @version,
      elixir: "~> 1.17",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      name: "PostgresToEcto",
      description: "Turn existing PostgreSQL database tables into Ecto migrations and schemas.",
      source_url: "https://github.com/arcanemachine/postgres_to_ecto",
      homepage_url: "https://github.com/arcanemachine/postgres_to_ecto",
      docs: [main: "readme", extras: ["README.md", "CHANGELOG.md"]],
      package: package(),
      test_coverage: [tool: ExUnit]
    ]
  end

  def application do
    [extra_applications: [:logger]]
  end

  defp deps do
    [
      {:ecto, "~> 3.13"},
      {:ecto_sql, "~> 3.13"},
      {:postgrex, "~> 0.22"},
      {:sourceror, "~> 1.12", runtime: false},
      {:ex_doc, "~> 0.38", only: :dev, runtime: false}
    ]
  end

  defp package do
    [
      licenses: ["MIT"],
      links: %{"GitHub" => "https://github.com/arcanemachine/postgres_to_ecto"},
      files: ["lib", ".formatter.exs", "mix.exs", "README.md", "CHANGELOG.md", "LICENSE"]
    ]
  end
end