Skip to content

Commit

Permalink
Update mix.exs for Hex and ExDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Sep 24, 2019
1 parent eed7692 commit 83241a3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Add `i18n_helpers` for Elixir as a dependency in your `mix.exs` file:
```elixir
def deps do
[
{:i18n_helpers, "~> 0.5.0"}
{:i18n_helpers, "~> 0.5.1"}
]
end
```
Expand Down
31 changes: 29 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
defmodule I18nHelpers.MixProject do
use Mix.Project

@version "0.5.1"

def project do
[
app: :i18n_helpers,
version: "0.5.0",
elixir: "~> 1.9",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env())
elixirc_paths: elixirc_paths(Mix.env()),

# Hex
version: @version,
package: package(),
description: "A set of tools to help you translate your Elixir applications",

# ExDoc
name: "I18n Helpers",
source_url: "https://github.com/mathieuprog/i18n_helpers",
docs: docs()
]
end

Expand All @@ -30,4 +41,20 @@ defmodule I18nHelpers.MixProject do

defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]

defp package do
[
licenses: ["Apache 2.0"],
maintainers: ["Mathieu Decaffmeyer"],
links: %{"GitHub" => "https://github.com/mathieuprog/i18n_helpers"}
]
end

defp docs do
[
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}"
]
end
end

0 comments on commit 83241a3

Please sign in to comment.