defmodule Crawly.Mixfile do use Mix.Project def project do [ app: :crawly, version: "0.2.0", name: "Crawly", source_url: "https://github.com/oltarasenko/crawly", elixir: "~> 1.7", description: description(), package: package(), test_coverage: [tool: ExCoveralls], start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), elixirc_options: [warnings_as_errors: true], deps: deps() ] end defp elixirc_paths(:test), do: ["lib", "test"] defp elixirc_paths(_), do: ["lib"] # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger, :sasl, :httpoison], mod: {Crawly.Application, []} ] end defp description() do "high-level web crawling & scraping framework for Elixir." end defp package() do [ # This option is only needed when you don't want to use the OTP application name name: "crawly", licenses: ["Apache 2.0"], links: %{ "GitHub" => "https://github.com/oltarasenko/crawly", "Docs" => "https://oltarasenko.github.io/crawly/" } ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:httpoison, "~> 1.4"}, {:floki, "~> 0.20.0"}, {:uuid, "~> 1.1"}, {:poison, "~> 3.1"}, {:new_gollum, "~> 0.3.0"}, {:plug_cowboy, "~> 2.0"}, {:epipe, "~> 1.0"}, {:credo, "~> 1.0.0", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.19", only: :dev, runtime: false}, {:earmark, "~> 1.2", only: :dev}, {:meck, "~> 0.8.13", only: :test}, {:excoveralls, "~> 0.10", only: :test} ] end end