Packages

ExConstructor generates constructor functions for your structs, handling map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score issues automatically.

Current section

Files

Jump to
Raw

mix.exs

defmodule ExConstructor.Mixfile do
use Mix.Project
def project do
[app: :exconstructor,
version: "0.5.0",
description: description,
package: package,
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
docs: [main: ExConstructor],
test_coverage: [tool: Coverex.Task, coveralls: true],
deps: deps]
end
def description do
~S"""
ExConstructor generates constructor functions for your structs, handling
map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score
issues automatically.
"""
end
def package do
[
maintainers: ["pete gamache", "Appcues"],
licenses: ["MIT"],
links: %{GitHub: "https://github.com/appcues/exconstructor"}
]
end
def application do
[applications: [:logger]]
end
defp deps do
[
{:ex_spec, "~> 1.0.0", only: :test},
{:excoveralls, "~> 0.4.3", only: :test},
{:coverex, "~> 1.4.7", only: :test},
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.11", only: :dev},
]
end
end