You've already forked tribes-plugin-aether
forked from tribes/tribes-plugin-template
47 lines
1.0 KiB
Elixir
47 lines
1.0 KiB
Elixir
defmodule MyPlugin.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :my_plugin,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.18",
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
aliases: aliases()
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[
|
|
extra_applications: [:logger]
|
|
# Uncomment if your plugin needs its own supervision tree:
|
|
# mod: {MyPlugin.Application, []}
|
|
]
|
|
end
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
defp deps do
|
|
[
|
|
# Host dependency — provides Tribes.Plugin behaviour, types, and test helpers.
|
|
#
|
|
# For local development alongside a tribes checkout:
|
|
{:tribes, path: "../tribes", only: [:dev, :test]},
|
|
#
|
|
# For CI or standalone development (when not co-located with tribes):
|
|
# {:tribes, github: "your-org/tribes", branch: "master", only: [:dev, :test]},
|
|
|
|
{:jason, "~> 1.2"}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
test: ["test"]
|
|
]
|
|
end
|
|
end
|