defmodule Membrane.MPEG.TS.MixProject do use Mix.Project @version "0.4.0" @github_url "https://github.com/membraneframework/membrane_mpegts_plugin" def project do [ app: :membrane_mpegts_plugin, version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), # Hex description: "Membrane Multimedia Framework (MPEG-TS Plugin)", package: package(), # Docs name: "Membrane MPEG-TS Plugin", source_url: @github_url, docs: docs(), homepage_url: "https://membraneframework.org", test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test ] ] end def application do [ extra_applications: [] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_env), do: ["lib"] defp deps do [ {:membrane_core, "~> 0.8.0"}, {:ex_doc, "~> 0.23", only: :dev, runtime: false}, {:dialyxir, "~> 1.0.0", only: [:dev], runtime: false}, {:credo, "~> 1.5", only: [:dev, :test], runtime: false}, {:membrane_file_plugin, "~> 0.7.0", only: :test}, {:excoveralls, "~> 0.13", only: :test} ] end defp package do [ maintainers: ["Membrane Team"], licenses: ["Apache 2.0"], links: %{ "GitHub" => @github_url, "Membrane Framework Homepage" => "https://membraneframework.org" } ] end defp docs do [ main: "readme", extras: ["README.md"], source_ref: "v#{@version}", nest_modules_by_prefix: [Membrane.MPEG.TS] ] end end