|
1 | 1 | defmodule GraphQL.Mixfile do
|
2 | 2 | use Mix.Project
|
3 | 3 |
|
| 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 | + |
4 | 9 | def project do
|
5 | 10 | [app: :graphql,
|
6 |
| - name: "GraphQL", |
7 |
| - version: "0.0.4", |
| 11 | + version: @version, |
8 | 12 | elixir: "~> 1.0",
|
9 |
| - description: description, |
| 13 | + description: @description, |
10 | 14 | 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, |
13 | 17 | build_embedded: Mix.env == :prod,
|
14 | 18 | start_permanent: Mix.env == :prod,
|
15 | 19 | 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"]]] |
23 | 22 | end
|
24 | 23 |
|
25 |
| - # Configuration for the OTP application |
26 |
| - # |
27 |
| - # Type `mix help compile.app` for more information |
28 | 24 | def application do
|
29 | 25 | [applications: [:logger]]
|
30 | 26 | end
|
31 | 27 |
|
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 |
41 | 28 | defp deps do
|
42 | 29 | [
|
43 |
| - {:earmark, "~> 0.1", only: :dev}, |
44 |
| - {:ex_doc, "~> 0.8", only: :dev}, |
45 | 30 | {:mix_test_watch, "~> 0.2", only: :dev},
|
| 31 | + {:earmark, "~> 0.1", only: :docs}, |
| 32 | + {:ex_doc, "~> 0.8", only: :docs}, |
46 | 33 | {:inch_ex, only: :docs}
|
47 | 34 | ]
|
48 | 35 | end
|
49 | 36 |
|
50 | 37 | 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"], |
54 | 39 | 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)] |
56 | 42 | end
|
57 |
| - |
58 | 43 | end
|
0 commit comments