Current section
Files
Jump to
Current section
Files
mix.exs
defmodule SaladUI.MixProject do
use Mix.Project
def project do
[
app: :salad_ui,
version: "1.0.0",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "SaladUI",
description: description(),
source_url: "https://github.com/bluzky/salad_ui",
docs: docs(),
package: package(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
maintainers: ["Dung Nguyen"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/bluzky/salad_ui"},
files:
~w(lib assets/salad_ui priv .formatter.exs mix.exs README*) ++
~w(CHANGELOG.md LICENSE package.json)
]
end
defp description do
"Phoenix UI components library inspired by shadcn ui"
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"docs/implement_simple_component.md",
"docs/complex_component_guide.md",
"docs/component_config_guide.md",
"docs/component_communications_explain.md",
"docs/js_documentation_index.md",
"docs/js_architecture_overview.md",
"docs/js_component_patterns.md",
"docs/js_component_reference.md",
"docs/js_state_transition_flow.md"
],
groups_for_extras: [
"Getting Started": [
"README.md"
],
"Component Guides": [
"docs/implement_simple_component.md",
"docs/complex_component_guide.md",
"docs/component_config_guide.md",
"docs/component_communications_explain.md"
],
"JavaScript Documentation": [
"docs/js_documentation_index.md",
"docs/js_architecture_overview.md",
"docs/js_component_patterns.md",
"docs/js_component_reference.md",
"docs/js_state_transition_flow.md"
]
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:tw_merge, "~> 0.1"},
{:phoenix_live_view, "~> 1.2"},
{:mix_test_watch, "~> 1.2", only: [:dev, :test]},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:styler, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.24", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: [:dev, :test], runtime: false},
{:tailwind, "~> 0.5", only: [:dev, :test], runtime: Mix.env() == :dev},
{:igniter, "~> 0.6"},
{:sourceror, "~> 1.9"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
test: ["test --color"],
audit: ["format", "credo", "coveralls"]
]
end
end