defmodule EditorConfig.MixProject do use Mix.Project @version "0.1.0" @source_url "https://github.com/ivan-podgurskiy/editorconfig" def project do [ app: :editorconfig_core, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), escript: [main_module: EditorConfig.CLI, name: "editorconfig"], # Hex package metadata description: description(), package: package(), # Docs name: "EditorConfig", 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 "EditorConfig Core implementation for Elixir: parser, glob matcher, resolver, and CLI." end defp package do [ name: "editorconfig_core", files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md), licenses: ["MIT"], links: %{"GitHub" => @source_url} ] end defp docs do [ name: "EditorConfig", main: "EditorConfig", source_ref: "v#{@version}", source_url: @source_url, extras: ["README.md", "CHANGELOG.md", "LICENSE"] ] end end