Packages
md
0.10.0
0.12.1
0.12.0
0.11.1
0.11.0
0.10.7
0.10.6
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Custom extendable markdown parser.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Md.MixProject do
use Mix.Project
@app :md
@version "0.10.0"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
xref: [exclude: []],
description: description(),
deps: deps(),
aliases: aliases(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
credo: :ci,
dialyzer: :ci,
tests: :test,
"coveralls.json": :test,
"coveralls.html": :test,
"quality.ci": :ci
],
dialyzer: [
plt_file: {:no_warn, ".dialyzer/plts/dialyzer.plt"},
plt_add_apps: [:floki],
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :inets],
mod: {Md.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:xml_builder_ex, "~> 3.1"},
{:unicode_guards, "~> 1.0"},
{:floki, "~> 0.33", optional: Mix.env() != :dev},
{:credo, "~> 1.0", only: :ci, runtime: false},
{:excoveralls, "~> 0.14", only: :test, runtime: false},
{:dialyxir, "~> 1.0", only: :ci, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev},
{:mneme, "~> 0.3", only: :test},
{:benchfella, "~> 0.3", only: :ci},
{:earmark, "~> 1.4", only: :ci}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
tests: ["coveralls.html --trace"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer --halt-exit-status"
]
]
end
defp description do
"""
Custom extendable markdown parser.
"""
end
defp package do
[
name: @app,
files: ~w|lib mix.exs README.md|,
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/am-kantox/#{@app}",
"Docs" => "https://hexdocs.pm/#{@app}"
}
]
end
defp docs do
[
main: "Md",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/logo-48x48.png",
source_url: "https://github.com/am-kantox/#{@app}",
extras: [],
groups_for_modules: [
# Md,
# Md.Listener,
# Md.Parser,
"Parser Internals": [
Md.Parser.Default,
Md.Parser.State,
Md.Parser.Syntax,
Md.Parser.Syntax.Void
]
]
]
end
end