Packages

Client for the Exact Online REST API

Current section

Files

Jump to
Raw

mix.exs

defmodule Exact.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/maartenvanvliet/exact_online"
def project do
[
app: :exact_online,
version: @version,
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
description: "Client for the Exact Online REST API",
package: package(),
docs: docs(),
dialyzer: [plt_add_apps: [:mix]]
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:req, "~> 0.5"},
{:jason, "~> 1.4"},
{:plug, "~> 1.16", only: :test},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: :dev, runtime: false}
]
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib notebooks .formatter.exs mix.exs README.md CHANGELOG.md LICENSE)
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: [
"README.md",
"CHANGELOG.md",
"notebooks/exact_online.livemd"
],
groups_for_extras: [Notebooks: ["notebooks/exact_online.livemd"]],
groups_for_modules: [
Core: [Exact, Exact.Client, Exact.Query, Exact.Page, Exact.Region],
Auth: [
Exact.OAuth,
Exact.Token,
Exact.TokenStore,
Exact.TokenStore.ETS
],
Errors: [Exact.Error, Exact.RateLimit],
Resources: [
Exact.Resource,
Exact.CRM.Account,
Exact.CRM.Contact,
Exact.Financial.GLAccount,
Exact.Sales.SalesInvoice,
Exact.System.Division,
Exact.System.Me
]
]
]
end
defp aliases do
[
check: [
"format --check-formatted",
"credo --strict",
"test",
"dialyzer"
]
]
end
end