Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit a3ff190

Browse files
author
Josh Price
committed
Refactor project mix.exs
1 parent e5c7d33 commit a3ff190

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ First, add GraphQL to your `mix.exs` dependencies:
1818

1919
```elixir
2020
defp deps do
21-
[{:graphql, "~> 0.0.4"}]
21+
[{:graphql, "~> 0.0.5"}]
2222
end
2323
```
2424

mix.exs

+16-31
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,43 @@
11
defmodule GraphQL.Mixfile do
22
use Mix.Project
33

4+
@version "0.0.5"
5+
6+
@description "An Elixir implementation of Facebook's GraphQL core engine"
7+
@repo_url "https://github.com/joshprice/graphql-elixir"
8+
49
def project do
510
[app: :graphql,
6-
name: "GraphQL",
7-
version: "0.0.4",
11+
version: @version,
812
elixir: "~> 1.0",
9-
description: description,
13+
description: @description,
1014
package: package,
11-
source_url: "https://github.com/joshprice/graphql-elixir",
12-
homepage_url: "https://github.com/joshprice/graphql-elixir",
15+
source_url: @repo_url,
16+
homepage_url: @repo_url,
1317
build_embedded: Mix.env == :prod,
1418
start_permanent: Mix.env == :prod,
1519
deps: deps,
16-
docs: [extras: ["README.md"]]]
17-
end
18-
19-
defp description do
20-
"""
21-
An Elixir implementation of GraphQL
22-
"""
20+
name: "GraphQL",
21+
docs: [main: "README", extras: ["README.md"]]]
2322
end
2423

25-
# Configuration for the OTP application
26-
#
27-
# Type `mix help compile.app` for more information
2824
def application do
2925
[applications: [:logger]]
3026
end
3127

32-
# Dependencies can be Hex packages:
33-
#
34-
# {:mydep, "~> 0.3.0"}
35-
#
36-
# Or git/path repositories:
37-
#
38-
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
39-
#
40-
# Type `mix help deps` for more examples and options
4128
defp deps do
4229
[
43-
{:earmark, "~> 0.1", only: :dev},
44-
{:ex_doc, "~> 0.8", only: :dev},
4530
{:mix_test_watch, "~> 0.2", only: :dev},
31+
{:earmark, "~> 0.1", only: :docs},
32+
{:ex_doc, "~> 0.8", only: :docs},
4633
{:inch_ex, only: :docs}
4734
]
4835
end
4936

5037
defp package do
51-
[# These are the default files included in the package
52-
files: ["lib", "src/*.xrl", "src/*.yrl", "mix.exs", "README*", "LICENSE*"],
53-
maintainers: ["Josh Price", "James Sadler"],
38+
[maintainers: ["Josh Price", "James Sadler"],
5439
licenses: ["BSD"],
55-
links: %{"GitHub" => "https://github.com/joshprice/graphql-elixir"}]
40+
links: %{"GitHub" => @repo_url},
41+
files: ~w(lib src/*.xrl src/*.yrl mix.exs *.md LICENSE)]
5642
end
57-
5843
end

0 commit comments

Comments
 (0)