Current section
Files
Jump to
Current section
Files
pine_ui_phoenix
mix.exs
mix.exs
defmodule PineUi.MixProject do
use Mix.Project
@version "0.1.2"
@source_url "https://github.com/jamesnjovu/pine_ui_phoenix"
def project do
[
app: :pine_ui,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
package: package(),
name: "Pine UI",
source_url: @source_url,
homepage_url: @source_url,
description: "Phoenix components for Pine UI - AlpineJS and TailwindCSS based UI library",
deps: deps(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {PineUi.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix_live_view, "~> 0.20.1"},
{:poison, "~> 3.1.0"},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:jason, "~> 1.2", optional: true}
]
end
defp package do
[
# This option is only needed when you don't want to use the OTP application name
name: "pine_ui_phoenix",
# These are the default files included in the package
files: ~w(lib .formatter.exs mix.exs README* LICENSE*),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md"
},
maintainers: ["James Njovu"]
]
end
defp docs do
[
main: "PineUi",
# logo: "assets/logo.png",
extras: [
"README.md": [title: "Overview"],
"LICENSE": [title: "License"],
],
groups_for_modules: [
"Text Components": [
PineUi.Text
],
"Interactive Components": [
PineUi.Button,
PineUi.Tooltip
],
"Layout Components": [
PineUi.Card
],
"Form Components": [
PineUi.TextInput,
PineUi.Select
],
"Status Components": [
PineUi.Badge
]
],
groups_for_functions: [
"Text & Animation": &(&1[:type] == :text),
"Buttons": &(&1[:type] == :button),
"Cards": &(&1[:type] == :card),
"Form Elements": &(&1[:type] == :form),
"Status Elements": &(&1[:type] == :status)
],
source_ref: "v#{@version}",
source_url: @source_url,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
end