Packages

Phoenix Component library providing ISO 3166-1-alpha-2 flag icons in 1x1 and 4x3 size variants. It allows easy integration and dynamic rendering of flag icons with customizable attributes in Phoenix projects.

Current section

Files

Jump to
flag_icons mix.exs
Raw

mix.exs

defmodule FlagIcons.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/rosaan/flag_icons"
def project do
[
app: :flag_icons,
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
# Hex
description:
"Phoenix Component library providing ISO 3166-1-alpha-2 flag icons in 1x1 and 4x3 size variants. It allows easy integration and dynamic rendering of flag icons with customizable attributes in Phoenix projects.",
package: package(),
# Docs
name: "PhoenixFlagIcons",
source_url: @source_url,
homepage_url: @source_url,
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "LICENSE.md"],
source_url: @source_url,
source_ref: "v#{@version}"
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.22", only: :dev, runtime: false},
{:phoenix_live_view, ">= 0.16.0"}
]
end
defp aliases do
[
setup: ["deps.get", "deps.compile", "compile"]
]
end
defp package do
[
maintainers: ["Rosaan Ramasamy"],
licenses: ["MIT"],
links: %{
github: @source_url
},
files: ["lib", "mix.exs", ".formatter.exs", "README.md", "LICENSE.md"]
]
end
end