ash_csv/mix.exs

92 lines
2.2 KiB
Elixir
Raw Normal View History

2020-08-20 09:09:22 +12:00
defmodule AshCsv.MixProject do
use Mix.Project
2021-03-30 03:33:05 +13:00
@version "0.8.3"
2020-08-20 17:28:05 +12:00
@description "A CSV data layer for Ash"
2020-08-20 09:09:22 +12:00
def project do
[
app: :ash_csv,
2020-08-20 17:28:05 +12:00
version: @version,
2020-08-20 09:09:22 +12:00
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
2020-08-20 17:28:05 +12:00
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test
],
2020-10-06 18:36:35 +13:00
elixirc_paths: elixirc_paths(Mix.env()),
2020-08-20 17:28:05 +12:00
docs: docs(),
aliases: aliases(),
description: @description,
source_url: "https://github.com/ash-project/ash_csv",
homepage_url: "https://github.com/ash-project/ash_csv"
]
end
2020-10-06 18:36:35 +13:00
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
2020-08-20 17:28:05 +12:00
defp docs do
[
main: "AshCsv",
source_ref: "v#{@version}",
logo: "logos/small-logo.png"
]
end
defp package do
[
name: :ash_csv,
licenses: ["MIT"],
links: %{
GitHub: "https://github.com/ash-project/ash_csv"
}
2020-08-20 09:09:22 +12:00
]
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
[
{:ash, ash_version("~> 1.52.0-rc.4")},
{:csv, "~> 2.4"},
2020-08-20 16:51:23 +12:00
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:ex_check, "~> 0.12.0", only: :dev},
2020-08-20 16:51:23 +12:00
{:credo, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:sobelow, ">= 0.0.0", only: :dev, runtime: false},
{:git_ops, "~> 2.0.1", only: :dev},
{:excoveralls, "~> 0.13.0", only: [:dev, :test]}
2020-08-20 09:09:22 +12:00
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
2020-08-20 17:28:05 +12:00
defp ash_version(default_version) do
case System.get_env("ASH_VERSION") do
nil -> default_version
"local" -> [path: "../ash"]
"master" -> [git: "https://github.com/ash-project/ash.git"]
version -> "~> #{version}"
end
end
2020-08-20 17:28:05 +12:00
defp aliases do
[
sobelow: "sobelow --skip",
credo: "credo --strict",
"ash.formatter": "ash.formatter --extensions AshCsv.DataLayer"
]
end
2020-08-20 09:09:22 +12:00
end