-
Notifications
You must be signed in to change notification settings - Fork 32
/
mix.exs
81 lines (76 loc) · 2.23 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
defmodule Shopifex.MixProject do
use Mix.Project
def project do
[
app: :shopifex,
version: "2.2.2",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
description: "Phoenix boilerplate for Shopify Embedded App SDK",
package: [
maintainers: ["Eric Froese"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/ericdude4/shopifex"
},
files: ~w(lib priv LICENSE mix.exs README.md )
],
# Docs
name: "Shopifex",
source_url: "https://github.com/ericdude4/shopifex",
homepage_url: "https://github.com/ericdude4/shopifex",
docs: [
# The main page in the docs
main: "Shopifex",
logo: "guides/images/s.png",
extras: ["README.md"],
filter_prefix: "Shopifex"
]
]
end
# A hack to bypass default env (https://stackoverflow.com/questions/51788263/module-conncase-is-not-loaded-and-could-not-be-found)
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Shopifex.Application, []},
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix, ">= 1.6.0"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_ecto, "~> 4.4"},
{:phoenix_view, "~> 2.0"},
{:ecto_sql, "~> 3.7"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, ">= 4.0.0"},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
{:guardian, "~> 2.0"},
{:neuron, "~> 5.0.0"},
{:cors_plug, "~> 2.0"},
{:httpoison, "~> 1.8"},
{:exvcr, "~> 0.11", only: :test}
]
end
defp aliases do
[
test: [
"ecto.create --quiet --repo ShopifexDummy.Repo",
"ecto.migrate --quiet --repo ShopifexDummy.Repo --migrations-path test/support/shopifex_dummy/priv/repo/migrations",
"test"
]
]
end
end