defmodule Anakin.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/Anakin-Inc/anakin-elixir" def project do [ app: :anakin, version: @version, elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), description: "Official Elixir SDK for the Anakin web-scraping API. Scrape, crawl, search, and run Wire actions with internal job polling.", docs: docs(), source_url: @source_url ] end def application do [extra_applications: [:logger]] end defp deps do [ {:req, "~> 0.5"}, {:jason, "~> 1.4"}, {:bypass, "~> 2.1", only: :test}, {:ex_doc, "~> 0.34", only: :dev, runtime: false} ] end defp package do [ name: "anakin", maintainers: ["Anakin"], licenses: ["Apache-2.0"], links: %{ "GitHub" => @source_url, "Anakin" => "https://anakin.io" }, files: ~w(lib mix.exs README.md LICENSE) ] end defp docs do [ main: "Anakin", source_ref: "v#{@version}", extras: ["README.md"] ] end end