Skip to content

Commit

Permalink
mix.exs updates for consistency and more data
Browse files Browse the repository at this point in the history
Mostly see #57 by @kianmeng

Decided to point the changelog to github though, as unreleased
changes are visible there which may come in helpful.
  • Loading branch information
PragTob committed Dec 10, 2023
1 parent 4f0901a commit 53ec472
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
defmodule BencheeHTML.Mixfile do
use Mix.Project

@source_url "https://github.com/PragTob/benchee_html"
@version "1.0.0"

def project do
[
app: :benchee_html,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
docs: [source_ref: @version],
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
Expand All @@ -25,11 +26,7 @@ defmodule BencheeHTML.Mixfile do
plt_file: {:no_warn, "tools/plts/benchee.plt"}
],
name: "benchee_html",
source_url: "https://github.com/PragTob/benchee_html",
description: """
HTML formatter with pretty graphs for the (micro) benchmarking library benchee.
Also allows export as PNG image!
"""
test_coverage: [tool: ExCoveralls]
]
end

Expand Down Expand Up @@ -64,13 +61,33 @@ defmodule BencheeHTML.Mixfile do

defp package do
[
description: """
HTML formatter with pretty graphs for the (micro) benchmarking library benchee.
Also allows export as PNG image!
""",
files: ["priv", "lib", "mix.exs", "README.md"],
maintainers: ["Tobias Pfeiffer"],
licenses: ["MIT"],
links: %{
"github" => "https://github.com/PragTob/benchee_html",
"Blog posts" => "https://pragtob.wordpress.com/tag/benchee/"
"Blog posts" => "https://pragtob.wordpress.com/tag/benchee/",
"Changelog" => "https://github.com/bencheeorg/benchee_html/blob/main/CHANGELOG.md",
"GitHub" => @source_url
}
]
end

defp docs do
[
extras: [
"CHANGELOG.md",
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"],
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: @version,
formatters: ["html"]
]
end
end

0 comments on commit 53ec472

Please sign in to comment.