Skip to content

Commit 189c674

Browse files
committed
Prepare for hex publish
1 parent 54305cd commit 189c674

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
erl_crash.dump
55
*.ez
66
*.so
7+
/doc

mix.exs

+37-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
defmodule GraphQL.Parser.Mixfile do
22
use Mix.Project
33

4+
@version "0.0.1"
5+
46
def project do
57
[app: :graphql_parser,
6-
version: "0.0.1",
8+
name: "GraphQL.Parser",
9+
version: @version,
710
elixir: "~> 1.1",
811
compilers: [:libgraphqlparser, :nif] ++ Mix.compilers,
912
build_embedded: Mix.env == :prod,
1013
start_permanent: Mix.env == :prod,
14+
description: description,
15+
package: package,
16+
docs: docs,
1117
deps: deps]
1218
end
1319

@@ -16,7 +22,36 @@ defmodule GraphQL.Parser.Mixfile do
1622
end
1723

1824
defp deps do
19-
[{:poison, "~> 1.5"}]
25+
[{:poison, "~> 1.5"},
26+
{:earmark, "~> 0.1", only: :dev},
27+
{:ex_doc, "~> 0.11", only: :dev}]
28+
end
29+
30+
defp description do
31+
"""
32+
An elixir interface for libgraphqlparser implemented as a NIF for parsing
33+
GraphQL.
34+
"""
35+
end
36+
37+
defp package do
38+
[maintainers: ["Vignesh Rajagopalan"],
39+
licenses: ["MIT"],
40+
links: %{"GitHub" => "https://github/aarvay/graphql_parser"},
41+
files: ["lib", "src", "Makefile", "mix.exs", "README.md",
42+
"libgraphqlparser/ast/ast.ast", "libgraphqlparser/ast/*.py",
43+
"libgraphqlparser/c/*.cpp", "libgraphqlparser/c/*.h",
44+
"libgraphqlparser/*.h", "libgraphqlparser/*.cpp",
45+
"libgraphqlparser/*.lpp", "libgraphqlparser/*.hh",
46+
"libgraphqlparser/*.hpp", "libgraphqlparser/*.ypp",
47+
"libgraphqlparser/CMakeLists.txt", "libgraphqlparser/LICENSE",
48+
"libgraphqlparser/PATENTS", "libgraphqlparser/README.md"]]
49+
end
50+
51+
defp docs do
52+
[source_ref: "v#{@version}",
53+
extras: ["README.md"],
54+
main: "README"]
2055
end
2156
end
2257

mix.lock

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
%{"poison": {:hex, :poison, "1.5.0"}}
1+
%{"earmark": {:hex, :earmark, "0.1.19"},
2+
"ex_doc": {:hex, :ex_doc, "0.11.1"},
3+
"poison": {:hex, :poison, "1.5.0"}}

0 commit comments

Comments
 (0)