Current section
Files
Jump to
Current section
Files
ex_structable
mix.exs
mix.exs
defmodule ExStructable.Mixfile do
use Mix.Project
def project do
[
app: :ex_structable,
version: "0.2.0",
elixir: "~> 1.5",
package: package(),
description: description(),
start_permanent: Mix.env == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
],
source_url: github_url(),
homepage_url: github_url(),
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
def github_url, do: "https://github.com/dylan-chong/ex_structable"
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Code deps
{:exconstructor, "~> 1.1.0"},
# Project deps
{:mix_test_watch, "~> 0.5", only: :dev, runtime: false},
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.11", only: :dev},
{:excoveralls, "~> 0.8", only: :test},
{:rename, "~> 0.1", only: :dev},
]
end
defp package do
[
licenses: ["Apache 2.0"],
maintainers: ["Dylan Chong"],
links: %{"GitHub" => github_url()},
]
end
defp description do
# If this is changed, update README
"Reduce boilerplate by generating struct `new` and `put` functions. "
<> "Allows you validate your structs when they are created and updated."
end
end