Skip to main content

mix.exs

defmodule WithAITop.MixProject do
  use Mix.Project

  def project do
    [
      app: :withai_top,
      version: "0.1.0",
      elixir: "~> 1.20",
      name: "WithAI.Top",
      description: description(),
      package: package(),
      docs: docs(),
      start_permanent: Mix.env() == :prod,
      deps: deps()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger]
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      {:ex_doc, "~> 0.38", only: :dev, runtime: false}
    ]
  end

  defp description do
    "A lightweight Elixir helper for WithAI.Top, a curated AI tools directory for discovering AI apps, agents, generators, and websites by category."
  end

  defp package do
    [
      name: "withai_top",
      licenses: ["MIT"],
      files: ~w(lib .formatter.exs mix.exs README.md LICENSE),
      links: %{
        "Homepage" => "https://withai.top/",
        "Website" => "https://withai.top/",
        "AI Tools Directory" => "https://withai.top/"
      },
      maintainers: ["Jacky Peng"]
    ]
  end

  defp docs do
    [
      main: "readme",
      extras: ["README.md"],
      source_url: "https://withai.top/",
      homepage_url: "https://withai.top/"
    ]
  end
end