Prepare mix file for Hex package publishing
This commit is contained in:
parent
bbc6d79ff0
commit
bb8ee97cfe
41
mix.exs
41
mix.exs
|
@ -1,29 +1,46 @@
|
|||
defmodule JSON.LD.Mixfile do
|
||||
use Mix.Project
|
||||
|
||||
@version "0.0.1"
|
||||
@repo_url "https://github.com/marcelotto/jsonld-ex"
|
||||
|
||||
@version "0.1.0"
|
||||
|
||||
def project do
|
||||
[
|
||||
app: :json_ld,
|
||||
version: @version,
|
||||
description: "An implementation of the JSON-LD standard",
|
||||
elixir: "~> 1.4", # TODO: "~> 1.5" for the fix of URI.merge
|
||||
build_embedded: Mix.env == :prod,
|
||||
start_permanent: Mix.env == :prod,
|
||||
deps: deps(),
|
||||
|
||||
# Hex
|
||||
package: package(),
|
||||
deps: deps()
|
||||
description: description(),
|
||||
|
||||
# Docs
|
||||
name: "JSON-LD.ex",
|
||||
docs: [
|
||||
main: "JSON.LD",
|
||||
source_url: @repo_url,
|
||||
source_ref: "v#{@version}",
|
||||
extras: ["README.md"],
|
||||
]
|
||||
]
|
||||
end
|
||||
|
||||
defp description do
|
||||
"""
|
||||
An implementation of JSON-LD for Elixir and RDF.ex.
|
||||
"""
|
||||
end
|
||||
|
||||
defp package do
|
||||
[
|
||||
name: :json_ld,
|
||||
maintainers: ["Marcel Otto"],
|
||||
licenses: ["MIT"],
|
||||
links: %{"GitHub" => "https://github.com/rdfex/json_ld",
|
||||
"Docs" => "http://rdfex.github.io/json_ld)/"},
|
||||
files: ["lib", "priv", "mix.exs", "README*", "readme*", "LICENSE*", "license*"]
|
||||
links: %{"GitHub" => @repo_url},
|
||||
files: ~w[lib mix.exs README.md LICENSE.md]
|
||||
]
|
||||
end
|
||||
|
||||
|
@ -33,12 +50,12 @@ defmodule JSON.LD.Mixfile do
|
|||
|
||||
defp deps do
|
||||
[
|
||||
{:rdf, path: "../rdf"},
|
||||
{:rdf, "~> 0.1"},
|
||||
{:poison, "~> 3.0"},
|
||||
{:dialyxir, "~> 0.4", only: [:dev, :test]},
|
||||
{:credo, "~> 0.6", only: [:dev, :test]},
|
||||
{:ex_doc, "~> 0.14", only: :dev},
|
||||
{:mix_test_watch, "~> 0.3", only: :dev},
|
||||
{:dialyxir, "~> 0.4", only: [:dev, :test], runtime: false},
|
||||
{:credo, "~> 0.6", only: [:dev, :test], runtime: false},
|
||||
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
|
||||
{:mix_test_watch, "~> 0.3", only: :dev, runtime: false},
|
||||
]
|
||||
end
|
||||
end
|
||||
|
|
3
mix.lock
3
mix.lock
|
@ -5,4 +5,5 @@
|
|||
"ex_doc": {:hex, :ex_doc, "0.16.1", "b4b8a23602b4ce0e9a5a960a81260d1f7b29635b9652c67e95b0c2f7ccee5e81", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, optional: false]}]},
|
||||
"fs": {:hex, :fs, "2.12.0", "ad631efacc9a5683c8eaa1b274e24fa64a1b8eb30747e9595b93bec7e492e25e", [:rebar3], []},
|
||||
"mix_test_watch": {:hex, :mix_test_watch, "0.4.0", "7e44b681b0238999d4c39b5beed77b4ac45aef1c112a763aae414bdb5bc34523", [:mix], [{:fs, "~> 2.12", [hex: :fs, optional: false]}]},
|
||||
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], []}}
|
||||
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], []},
|
||||
"rdf": {:hex, :rdf, "0.1.1", "94b2ae892740169b6631924a0dd2bb8909c9bd130294f33d5c8b1ed18fafd37a", [:mix], []}}
|
||||
|
|
Loading…
Reference in a new issue