defmodule TTYCast.MixProject do use Mix.Project def project do [ app: :ttycast, version: "0.1.0", elixir: "~> 1.19", start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases(), dialyzer: [plt_add_apps: [:mix]], description: description(), package: package(), docs: docs() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end def cli do [ preferred_envs: [ci: :test] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:jason, "~> 1.4"}, {:ex_doc, "~> 0.38", only: :dev, runtime: false}, {:ghostty, "~> 0.4.9"}, {:ex_slop, "~> 0.4", only: [:dev, :test], runtime: false}, {:reach, "~> 2.0", only: [:dev, :test], runtime: false}, {:ex_dna, "~> 1.0", only: [:dev, :test], runtime: false}, {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:credo, "~> 1.0", only: [:dev, :test], runtime: false}, {:vibe_kit, "~> 0.1", only: [:dev, :test], runtime: false}, {:igniter, "~> 0.6", only: [:dev, :test], runtime: false} ] end defp description do "Seekable, compressed terminal recordings for BEAM applications." end defp package do [ name: "ttycast", licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/elixir-vibe/ttycast", "Format" => "https://github.com/elixir-vibe/ttycast/blob/master/FORMAT.md" }, files: ~w(lib mix.exs README.md FORMAT.md LICENSE) ] end defp docs do [ main: "TTYCast", extras: ["README.md", "FORMAT.md"], groups_for_modules: [ Core: [TTYCast, TTYCast.Writer, TTYCast.Recorder], MixTasks: [ Mix.Tasks.Ttycast.Record, Mix.Tasks.Ttycast.Rec, Mix.Tasks.Ttycast.Info, Mix.Tasks.Ttycast.Snapshot, Mix.Tasks.Ttycast.Find, Mix.Tasks.Ttycast.Reindex, Mix.Tasks.Ttycast.Bench ] ] ] end defp aliases() do [ ci: [ "compile --warnings-as-errors", "format --check-formatted", "test", "credo --strict", "dialyzer", "ex_dna --max-clones 0", "reach.check --arch --smells" ] ] end end