defmodule ShellWords.MixProject do use Mix.Project @version "0.2.0" @source_url "https://github.com/ivan-podgurskiy/shell_words" def project do [ app: :shell_words, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), # Hex package metadata description: description(), package: package(), # Docs name: "ShellWords", source_url: @source_url, docs: docs(), # Dialyzer dialyzer: [ plt_add_apps: [:ex_unit, :mix], plt_local_path: "priv/plts/local.plt", plt_core_path: "priv/plts/core.plt" ] ] end def application do [extra_applications: [:logger]] end defp deps do [ {:stream_data, "~> 1.0", only: [:dev, :test]}, {:ex_doc, "~> 0.34", only: :dev, runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false} ] end defp description do "POSIX-like shell word splitting, escaping, and joining. An Elixir take on Python's shlex and Ruby's Shellwords." end defp package do [ files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md), licenses: ["MIT"], links: %{"GitHub" => @source_url} ] end defp docs do [ main: "ShellWords", source_ref: "v#{@version}", source_url: @source_url, extras: ["README.md", "CHANGELOG.md", "LICENSE"] ] end end