defmodule ExStructable.Mixfile do use Mix.Project @github_url "https://github.com/dylan-chong/ex_structable" def project do [ app: :ex_structable, version: "0.1.2", 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 # 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"} ] 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 "Customisable library that reduces struct method boilerplate duplication. module. Allows you validate your structs when they are created or updated." end end