defmodule ExHubic.Mixfile do use Mix.Project @version "0.1.0" def project do [ app: :ex_hubic, name: "ExHubic", version: @version, source_url: "https://github.com/stephenmoloney/ex_hubic", elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), deps: deps(), docs: docs() ] end def application() do [ mod: [], applications: [:calendar, :crypto, :httpoison, :logger] ] end defp deps() do [ # Production deps {:secure_random, "~> 0.2"}, {:calendar, "~> 0.13.2"}, {:og, "~> 0.1.0"}, {:morph, "~> 0.1.0"}, {:httpoison, "~> 0.8.0"}, {:poison, "~> 1.5 or ~> 2.0"}, {:floki, "~> 0.7.1"}, # Test deps {:openstex, github: "stephenmoloney/openstex", only: :test}, {:markdown, github: "devinus/markdown", only: :dev}, {:ex_doc, "~> 0.11", only: :dev} ] end defp description() do ~s""" An elixir client library for the HUBIC API - https://api.hubic.com/. """ end defp package() do %{ licenses: ["MIT"], maintainers: ["Stephen Moloney"], links: %{ "GitHub" => "https://github.com/stephenmoloney/ex_hubic"}, files: ~w(lib mix.exs README* LICENSE* CHANGELOG*) } end defp docs() do [ main: "api-reference", extras: [ "docs/mix_task_advanced.md": [path: "mix_task_advanced.md", title: "Step 1: Generating the Hubic application (Optional)"], "docs/getting_started_advanced.md": [path: "getting_started_advanced.md", title: "Step 2: Setting up client(s)"] ] ] end end