2020-06-12 17:29:35 -04:00
|
|
|
defmodule Omnibot.MixProject do
|
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
|
|
def project do
|
|
|
|
|
[
|
|
|
|
|
app: :omnibot,
|
|
|
|
|
version: "0.1.0",
|
2020-07-17 17:15:27 -07:00
|
|
|
elixir: "~> 1.10",
|
2020-06-12 17:29:35 -04:00
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
|
deps: deps(),
|
|
|
|
|
aliases: aliases(),
|
|
|
|
|
]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
|
def application do
|
|
|
|
|
[
|
|
|
|
|
extra_applications: [:logger],
|
|
|
|
|
mod: {Omnibot, []}
|
|
|
|
|
]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
defp aliases do
|
|
|
|
|
[
|
|
|
|
|
c: ["clean", "compile --warnings-as-errors"],
|
|
|
|
|
test: ["test --no-start"],
|
|
|
|
|
]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
|
defp deps do
|
2020-07-01 12:04:51 -07:00
|
|
|
# TODO : figure out how to make contrib modules optional (umbrella project?) and enable specific requirements
|
|
|
|
|
[
|
2020-07-02 18:09:09 -07:00
|
|
|
{:tesla, "~> 1.3.0"}, # Used by Omnibot.Contrib.Linkbot
|
|
|
|
|
{:meeseeks, "~> 0.15.1"}, # Used by Omnibot.Contrib.Linkbot
|
|
|
|
|
{:sqlitex, "~> 1.7"}, # Used by Omnibot.Contrib.Wordbot
|
2020-07-01 12:04:51 -07:00
|
|
|
]
|
2020-06-12 17:29:35 -04:00
|
|
|
end
|
|
|
|
|
end
|