Packages
Parse, compare, and sort the chapter identifiers scanlation sources actually use — v30-c378, 10.5, 129e, 062 — into correct reading order. Natural ordering keys, prev/next comparisons, display numbers, and publication-status normalization. Pure functions, zero dependencies.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Chapter.MixProject do
use Mix.Project
@version "0.1.0"
@description "Parse, compare, and sort the chapter identifiers scanlation sources actually use — v30-c378, 10.5, 129e, 062 — into correct reading order. Natural ordering keys, prev/next comparisons, display numbers, and publication-status normalization. Pure functions, zero dependencies."
@source_url "https://github.com/alexdont/chapter"
def project do
[
app: :chapter,
version: @version,
description: @description,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs()
]
end
def application do
[extra_applications: []]
end
defp deps do
[
{:ex_doc, "~> 0.39", only: :dev, runtime: false}
]
end
defp package do
[
name: "chapter",
maintainers: ["Alexander Don"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib mix.exs README.md LICENSE CHANGELOG.md)
]
end
defp docs do
[
name: "Chapter",
source_ref: "v#{@version}",
source_url: @source_url,
main: "Chapter",
extras: ["README.md", "CHANGELOG.md", "LICENSE"]
]
end
end