mix.exs (1377B)
1 defmodule Absinthe.Plug.Mixfile do 2 use Mix.Project 3 4 @version "1.5.8" 5 6 def project do 7 [ 8 app: :absinthe_plug, 9 version: @version, 10 elixir: "~> 1.10", 11 build_embedded: Mix.env() == :prod, 12 start_permanent: Mix.env() == :prod, 13 elixirc_paths: elixirc_paths(Mix.env()), 14 package: package(), 15 source_url: "https://github.com/absinthe-graphql/absinthe_plug", 16 docs: [source_ref: "v#{@version}", main: "Absinthe.Plug"], 17 deps: deps() 18 ] 19 end 20 21 defp package do 22 [ 23 description: "Plug support for Absinthe, the GraphQL toolkit for Elixir", 24 files: ["lib", "mix.exs", "README*"], 25 maintainers: ["Ben Wilson", "Bruce Williams"], 26 licenses: ["MIT"], 27 links: %{ 28 Website: "https://absinthe-graphql.org", 29 Changelog: "https://github.com/absinthe-graphql/absinthe_plug/blob/master/CHANGELOG.md", 30 GitHub: "https://github.com/absinthe-graphql/absinthe_plug" 31 } 32 ] 33 end 34 35 def application do 36 [extra_applications: [:logger, :inets]] 37 end 38 39 # Specifies which paths to compile per environment. 40 defp elixirc_paths(:test), do: ["lib", "test/support"] 41 defp elixirc_paths(_), do: ["lib"] 42 43 defp deps do 44 [ 45 {:absinthe, "~> 1.5"}, 46 {:plug, "~> 1.4"}, 47 {:jason, ">= 0.0.0", only: [:dev, :test]}, 48 {:ex_doc, "~> 0.20", only: :dev} 49 ] 50 end 51 end