defmodule Tezex.MixProject do use Mix.Project @version "3.0.0" @url_docs "http://hexdocs.pm/tezex" @url_github "https://github.com/objkt-com/tezex" def project do [ app: :tezex, version: @version, elixir: "~> 1.13", elixirc_paths: elixirc_paths(Mix.env()), description: description(), package: package(), deps: deps(), start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "test.watch": :test ], docs: [ source_ref: "v#{@version}", source_url: @url_github, main: "readme", extras: ["README.md"] ], dialyzer: [ plt_add_apps: [:mix, :crypto], plt_file: {:no_warn, "priv/plts/dialyzer.plt"} ] ] end defp description() do "A collection of utils to work with the Tezos blockchain using Elixir: parsing Micheline, verifying Tezos signed messages, deriving Tezos wallet addresses from public key, etc." end defp package() do [ name: "tezex", links: %{ "Docs" => @url_docs, "GitHub" => @url_github }, licenses: ["MIT"], files: ~w(lib .formatter.exs mix.exs README* LICENSE*) ] end # Configuration for the OTP application. # # Run "mix help compile.app" to learn about applications. def application do [ mod: {Tezex.Application, []}, extra_applications: [:logger, :crypto] ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/fixtures"] defp elixirc_paths(_), do: ["lib"] # Run "mix help deps" to learn about dependencies. defp deps do [ {:base_58_check, "~> 1.0"}, {:blake2, "~> 1.0"}, {:dialyxir, "~> 1.0", only: [:dev], runtime: false}, {:ex_doc, "~> 0.27", only: :dev, runtime: false}, {:ex_unit_notifier, "~> 1.2", only: :test}, {:excoveralls, "~> 0.15.1", only: :test}, {:finch, "~> 0.10"}, {:jason, "~> 1.4"}, {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false}, {:ssl_verify_fun, "~> 1.1.0", [env: :prod, hex: "ssl_verify_fun", repo: "hexpm"]} ] end end