-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmix.exs
67 lines (61 loc) · 1.61 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
defmodule Furlex.Mixfile do
use Mix.Project
def project do
[
app: :furlex,
version: "0.5.0",
elixir: "~> 1.10",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
name: "Furlex",
source_url: "https://github.com/claytongentry/furlex",
docs: [
main: "Furlex",
extras: ~w(README.md CHANGELOG.md)
]
]
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
[
mod: {Furlex, []},
extra_applications: [:httpoison, :logger]
]
end
defp deps do
[
{:floki, "~> 0.30.0"},
{:httpoison, "~> 1.8"},
{:jason, "~> 1.2"},
{:plug_cowboy, "~> 2.0"},
{:benchee, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:bypass, "~> 2.1", only: :test}
]
end
defp description do
"""
Furlex is a structured data extraction tool written in Elixir.
It currently supports unfurling oEmbed, Twitter Card, Facebook Open Graph, JSON-LD
and plain ole' HTML `<meta />` data out of any url you supply.
"""
end
defp package do
[
name: :furlex,
files: ~w(doc lib mix.exs README.md LICENSE.md CHANGELOG.md),
maintainers: ["Clayton Gentry"],
licenses: ["Apache 2.0"],
links: %{
"Github" => "http://github.com/claytongentry/furlex",
"Docs" => "http://hexdocs.pm/furlex"
}
]
end
end