Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Weavr.MixProject do
use Mix.Project
@source_url "https://github.com/iamkanishka/weavr"
@version "1.0.0"
def project do
[
app: :weavr,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
name: "Weavr",
description: description(),
package: package(),
source_url: @source_url,
docs: docs(),
dialyzer: dialyzer(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:inets, :ssl, :crypto],
mod: {Weavr.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Zero required runtime dependencies by design — see README.
# telemetry and jason are used automatically if already present in the host app.
{:telemetry, "~> 1.2", optional: true},
{:jason, "~> 1.4", optional: true},
# Dev/test tooling only:
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test}
]
end
defp description do
"A zero-dependency Elixir client for the Weavr Multi embedded banking API: " <>
"authentication, bulk operations, corporates, consumers, accounts, cards, " <>
"transfers, sends, linked accounts, users, passwords, back-office, and simulator."
end
defp package do
[
name: "weavr",
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Weavr API Reference" => "https://weavr-multi-api.redoc.ly"
},
files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE)
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md", "LICENSE"],
groups_for_modules: [
Core: [
Weavr,
Weavr.Config,
Weavr.Client,
Weavr.Error,
Weavr.HTTP,
Weavr.Telemetry,
Weavr.JSON,
Weavr.Resource
],
Authentication: [
Weavr.Auth,
Weavr.StepUp,
Weavr.AuthenticationFactors
],
Identities: [
Weavr.Corporates,
Weavr.Consumers,
Weavr.Identities,
Weavr.Users,
Weavr.Passwords
],
Instruments: [
Weavr.Accounts,
Weavr.Cards,
Weavr.LinkedAccounts
],
Transactions: [
Weavr.Transfers,
Weavr.Sends,
Weavr.Bulk
],
"Back Office": [
Weavr.BackOffice
],
Testing: [
Weavr.Simulator
]
]
]
end
defp dialyzer do
[
plt_add_apps: [:ex_unit, :mix],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
flags: [:error_handling, :underspecs]
]
end
end