defmodule Faker.Mixfile do
use Mix.Project
@version "0.12.0"
def project do
[
app: :faker,
version: @version,
elixir: "~> 1.4",
description: "Faker is a pure Elixir library for generating fake data.",
package: package(),
name: "Faker",
source_url: "https://github.com/igas/faker",
deps: deps(),
dialyzer: [
flags: [
:error_handling,
:race_conditions,
:underspecs
]
]
]
end
def application do
[
applications: [:crypto],
env: env()
]
end
defp env do
[
locale: :en,
country: nil,
random_module: Faker.Random.Elixir
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:earmark, ">= 0.0.0", only: :dev, runtime: false},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false}
]
end
defp package do
%{
files: ["lib", "mix.exs", "mix.lock"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/igas/faker"}
}
end
end