Skip to content

Commit

Permalink
mix.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ruoss committed Oct 12, 2022
1 parent acae72c commit dc96e55
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
id: plt-cache
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plts
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plts
path: |
priv/plts
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ pluggable-*.tar

# Temporary files, for example, from tests.
/tmp/

# Dialyzer Files
/priv/plts
42 changes: 39 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
defmodule Pluggable.MixProject do
use Mix.Project

@source_url "https://github.com/mruoss/pluggable"
@version "1.0.0"

def project do
[
app: :pluggable,
version: "0.1.0",
description: "A Plug-like pipeline creator",
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: cli_env(),
consolidate_protocols: Mix.env() != :test
consolidate_protocols: Mix.env() != :test,
dialyzer: dialyzer()
]
end

Expand Down Expand Up @@ -43,7 +49,12 @@ defmodule Pluggable.MixProject do
[
# The main page in the docs
main: "Pluggable.Token",
extras: ["README.md"]
source_ref: @version,
source_url: @source_url,
extras: [
"README.md",
"CHANGELOG.md"
]
]
end

Expand All @@ -59,4 +70,29 @@ defmodule Pluggable.MixProject do
"coveralls.json": :test
]
end

defp package do
[
name: :pluggable,
maintainers: ["Michael Ruoss"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/pluggable/changelog.html"
},
extras: [
"README.md",
"CHANGELOG.md"
],
files: ["lib", "mix.exs", "README.md", "LICENSE", "CHANGELOG.md", ".formatter.exs"]
]
end

defp dialyzer do
[
ignore_warnings: ".dialyzer_ignore.exs",
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/pluggable.plt"}
]
end
end

0 comments on commit dc96e55

Please sign in to comment.