defmodule DataProvider.MixProject do use Mix.Project def project do [ app: :data_provider, name: "DataProvider", version: "1.0.0", elixir: "~> 1.12", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), source_url: "https://github.com/Shakarim/data_provider" ] end # Run "mix help compile.app" to learn about applications. def application do [ mod: {DataProvider.Application, []}, extra_applications: [:logger, :runtime_tools] ] 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 [ {:ecto_sql, "~> 3.4", only: [:test, :dev]}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false} ] end @spec description() :: String.t defp description(), do: "Library for simple filtering and sorting datasheets" @spec package() :: List.t defp package() do [ # These are the default files included in the package files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*), licenses: ["MIT"], links: %{"GitHub" => "https://github.com/Shakarim/data_provider"} ] end end