defmodule EctoExtractMigrations.MixProject do use Mix.Project @github "https://github.com/cogini/ecto_extract_migrations" def project do [ app: :ecto_extract_migrations, version: "0.1.1", elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), source_url: @github, homepage_url: @github, docs: docs(), dialyzer: [ plt_add_apps: [:mix, :eex] # plt_add_deps: true, # flags: ["-Werror_handling", "-Wrace_conditions"], # flags: ["-Wunmatched_returns", :error_handling, :race_conditions, :underspecs], # ignore_warnings: "dialyzer.ignore-warnings" ], deps: deps(), ] 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 [ {:nimble_parsec, "~> 0.6"}, {:dialyxir, "~> 0.5.1", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.21", only: :dev, runtime: false}, # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} ] end defp description do "Mix task to generate Ecto migrations from SQL schema file" end defp package do [ maintainers: ["Jake Morrison"], licenses: ["Apache 2.0"], links: %{"GitHub" => @github} ] end defp docs do [ main: "readme", extras: ["README.md", "CHANGELOG.md"], source_url: @github, # api_reference: false, source_url_pattern: "#{@github}/blob/master/%{path}#L%{line}", skip_undefined_reference_warnings_on: ["CHANGELOG.md"] ] end end