defmodule Phosphor.Generated.Manifest do @moduledoc false @weights [:thin, :light, :regular, :bold, :fill, :duotone] @data_file Path.expand("manifest_data.exs", __DIR__) @external_resource @data_file @icons ( if File.exists?(@data_file) do case Code.eval_file(@data_file, []) do {icons, _binding} when is_list(icons) -> icons other -> raise "invalid manifest data at #{@data_file}: #{inspect(other)}" end else IO.warn("Phosphor manifest not found; run `mix phosphor.gen`. Using empty manifest for now.") [] end ) def weights, do: @weights def icons, do: @icons end