Packages

A publishing engine with metadata, markdown and code highlighting support.

Current section

Files

Jump to
poly_post mix.exs
Raw

mix.exs

defmodule PolyPost.MixProject do
use Mix.Project
@source_url "https://git.sr.ht/~angelolakra/poly_post"
@version "0.3.0"
def project do
[
app: :poly_post,
docs: docs(),
version: @version,
elixir: "~> 1.19",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
source_url: @source_url,
homepage_url: @source_url
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test,
"mneme.test": :test,
"mneme.watch": :test
]
]
end
def application do
[
mod: {PolyPost, []},
extra_applications: [:logger]
]
end
defp deps do
[
# Optional
{:mdex, "~> 0.13", optional: true},
{:lumis, "~> 0.8", only: [:dev, :test], optional: true},
{:yaml_elixir, "~> 2.1", only: [:dev, :test], optional: true},
# Dev
{:ex_doc, "~> 0.40", only: :dev, runtime: false},
# Dev + Test
{:castore, "~> 1.0", only: [:dev, :test]},
{:mneme, "~> 0.10", only: [:dev, :test]},
# Test
{:excoveralls, "~> 0.18", only: :test}
]
end
defp description do
"""
A publishing engine with metadata, markdown and code highlighting support.
"""
end
defp docs do
[
main: "readme",
name: "PolyPost",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/poly_post",
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md", "LICENSE"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/fixtures", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["Apache-2.0"],
links: %{"Sourcehut" => @source_url},
maintainers: ["Angelo Lakra"]
]
end
end