defmodule GitHub.MixProject do use Mix.Project @version "0.0.1-beta.0" @source_url "https://github.com/aj-foster/open-api-github" def project do [ app: :oapi_github, version: @version, elixir: "~> 1.13", start_permanent: Mix.env() == :prod, name: "GitHub REST API Client", source_url: @source_url, homepage_url: @source_url, deps: deps(), docs: docs(), package: package() ] end def application do if Mix.env() == :prod do [ extra_applications: [:logger] ] else [ extra_applications: [:logger, :hackney] ] end end defp deps do [ {:ex_doc, "~> 0.29", only: :dev, runtime: false}, {:jason, "~> 1.0", optional: true}, {:httpoison, "~> 1.7", optional: true}, {:oapi_generator, "0.0.1-beta.1", only: [:dev, :test]}, {:redix, "~> 1.0", optional: true} ] end defp docs do [ main: "readme", extras: [ "README.md": [title: "Overview"], "CODE_OF_CONDUCT.md": [title: "Code of Conduct"], "CONTRIBUTING.md": [title: "Contributing"], LICENSE: [title: "License"] ], groups_for_modules: [ Client: [ GitHub, GitHub.Auth, GitHub.Config, GitHub.Error, GitHub.Operation ], Plugins: ~r/GitHub.Plugin/, Operations: [ GitHub.Actions, GitHub.Activity, GitHub.Apps, GitHub.Billing, GitHub.Checks, GitHub.CodeScanning, GitHub.CodesOfConduct, GitHub.Codespaces, GitHub.Dependabot, GitHub.DependencyGraph, GitHub.Emojis, GitHub.EnterpriseAdmin, GitHub.Gists, GitHub.Git, GitHub.Gitignore, GitHub.Interactions, GitHub.Issues, GitHub.Licenses, GitHub.Markdown, GitHub.Meta, GitHub.Migrations, GitHub.Oidc, GitHub.Packages, GitHub.Projects, GitHub.Pulls, GitHub.RateLimit, GitHub.Reactions, GitHub.Repos, GitHub.Search, GitHub.SecretScanning, GitHub.ServerStatistics, GitHub.Teams, GitHub.Users ], Schemas: ~r// ] ] end defp package do [ description: "GitHub REST API Client for Elixir", files: [ "lib", "LICENSE", "mix.exs", "README.md" ], licenses: ["MIT"], links: %{"GitHub" => @source_url, "Sponsor" => "https://github.com/sponsors/aj-foster"}, maintainers: ["AJ Foster"] ] end end