Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Finex.MixProject do
use Mix.Project
@version "0.1.0"
@description "Professional financial calculations for Elixir applications"
@source_url "https://github.com/zeadhani/finex"
def project do
[
app: :finex,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
description: @description,
package: package(),
deps: deps(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:decimal, "~> 2.1"},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false}
]
end
defp package do
[
name: "finex",
files: ["lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md"],
maintainers: ["Zead Hani"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Documentation" => "https://hexdocs.pm/finex"
}
]
end
defp docs do
[
name: "Finex",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/finex",
source_url: @source_url,
main: "Finex",
extra_section: "GUIDES",
extras: [
"README.md": [title: "Getting Started"]
],
groups_for_modules: [
"Core": [
Finex,
Finex.Investment
],
"Utilities": [
Finex.Utils
]
]
]
end
end