Skip to content

Commit

Permalink
Add package to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
alisinabh committed Jun 16, 2017
1 parent a85b07a commit 14c6b9b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Prex
[![Status](https://img.shields.io/badge/status-under%20development-red.svg)]()

Tasks for generating api interfaces in elixir from ApiBlueprint files.

**This project is under development and in experimental stage**

## Installation

You can install prex like this:
Expand Down
33 changes: 29 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
defmodule Prex.Mixfile do
use Mix.Project

@version "0.0.1"

def project do
[app: :prex,
version: "0.1.0",
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
description: description(),
package: package(),
deps: deps(),
name: "Prex",
source_url: "https://github.com/alisinabh/prex"]
end

# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger, :poison]]
[extra_applications: [:poison]]
end

# Dependencies can be Hex packages:
Expand All @@ -28,6 +34,25 @@ defmodule Prex.Mixfile do
#
# Type "mix help deps" for more examples and options
defp deps do
[{:poison, "~> 3.1"}]
[{:poison, "~> 3.1"},
{:ex_doc, ">= 0.0.0", only: :dev}]
end

defp package do
# These are the default files included in the package
[
name: :prex,
files: ["lib", "mix.exs", "README*", "LICENSE"],
maintainers: ["Alisina Bahadori"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/alisinabh/prex"}
]
end

defp description do
"""
Prex is a REST API client code generator for elixir
"""
end

end
4 changes: 3 additions & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
%{"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], []}}
%{"earmark": {:hex, :earmark, "1.2.2", "f718159d6b65068e8daeef709ccddae5f7fdc770707d82e7d126f584cd925b74", [:mix], []},
"ex_doc": {:hex, :ex_doc, "0.16.1", "b4b8a23602b4ce0e9a5a960a81260d1f7b29635b9652c67e95b0c2f7ccee5e81", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, optional: false]}]},
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], []}}

0 comments on commit 14c6b9b

Please sign in to comment.