defmodule PhoenixFormAwesomplete.Mixfile do use Mix.Project @version "1.0.2" @source_url "https://github.com/nico-amsterdam/phoenix_form_awesomplete" def project do [app: :phoenix_form_awesomplete, version: @version, elixir: "~> 1.15", # Hex package: package(), description: description(), # Docs name: "PhoenixFormAwesomplete", docs: [source_ref: "master", main: "PhoenixFormAwesomplete", canonical: "http://hexdocs.pm/phoenix_form_awesomplete", source_url: @source_url ], build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), aliases: aliases() ] end # Configuration for the OTP application # # Type "mix help compile.app" for more information def application do [ extra_applications: [:logger] ] end # Dependencies can be Hex packages: # # {:mydep, "~> 0.3.0"} # # Or git/path repositories: # # {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"} # # Type "mix help deps" for more examples and options defp deps do [ {:phoenix_html, "~> 3.3 or ~> 4.0"}, {:phoenix_live_view, "~> 0.20 or ~> 1.0"}, {:ex_doc, "~> 0.34", only: :dev, runtime: false}, {:esbuild, "~> 0.8", only: [:dev, :test], runtime: false} ] end defp description do """ Phoenix component that utilizes Lea Verou's autocomplete autosuggest accessible (WCAG 2) Awesomplete widget, featuring dynamic data loading """ end defp package do [ name: :phoenix_form_awesomplete, maintainers: ["Nico Hoogervorst"], licenses: ["MIT"], links: %{"GitHub" => @source_url, "Documentation with live examples" => "https://nico-amsterdam.github.io/awesomplete-util/phoenix.html", "Livebook playground" => "https://livebook.dev/run?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnico-amsterdam%2Fphoenix_form_awesomplete%2Fmaster%2Fphoenix_form_awesomplete.livemd", "LiveView escript" => "https://raw.githubusercontent.com/nico-amsterdam/phoenix_form_awesomplete/master/awesomplete_via_channel.exs"}, files: ~w(assets lib priv LICENSE mix.exs package.json README.md) ] end defp aliases do [ "assets.build": ["esbuild module", "esbuild main", "esbuild module --minify --outfile=../priv/static/awesomplete_bundle.min.mjs", "esbuild css"] ] end end