2020-12-16 10:35:31 -06:00
|
|
|
defmodule Lytedev.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
2020-12-16 17:40:14 -06:00
|
|
|
@src_path "src"
|
2020-12-28 09:34:03 -06:00
|
|
|
@config_dir_path Path.join(@src_path, "config")
|
|
|
|
@config_path Path.join(@config_dir_path, "config.exs")
|
2020-12-16 17:40:14 -06:00
|
|
|
@test_path Path.join(@src_path, "test")
|
2020-12-16 17:30:44 -06:00
|
|
|
@build_path "build"
|
|
|
|
@deps_path Path.join(@build_path, "deps")
|
2020-12-16 17:40:14 -06:00
|
|
|
@docs_path Path.join(@build_path, "docs")
|
|
|
|
|
|
|
|
def deps, do: [
|
2020-12-28 09:39:49 -06:00
|
|
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
|
|
|
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
|
2020-12-16 17:40:14 -06:00
|
|
|
{:ex_doc, "~> 0.23.0", only: :dev},
|
|
|
|
{:jason, "~> 1.0"},
|
|
|
|
{:finch, "~> 0.5"},
|
|
|
|
{:elli, "~> 3.0"},
|
|
|
|
]
|
|
|
|
|
|
|
|
def docs, do: [output: @docs_path]
|
2020-12-16 17:30:44 -06:00
|
|
|
|
2020-12-16 10:35:31 -06:00
|
|
|
def project(), do: [
|
|
|
|
app: :lytedev,
|
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.7",
|
2020-12-16 17:40:14 -06:00
|
|
|
elixirc_paths: [@src_path],
|
|
|
|
config_path: @config_path,
|
|
|
|
test_paths: [@test_path],
|
2020-12-16 10:35:31 -06:00
|
|
|
start_permanent: true,
|
2020-12-16 17:30:44 -06:00
|
|
|
build_path: @build_path,
|
|
|
|
deps_path: @deps_path,
|
2020-12-16 17:36:13 -06:00
|
|
|
deps: deps(),
|
|
|
|
docs: docs(),
|
2020-12-17 15:23:16 -06:00
|
|
|
releases: releases(),
|
2020-12-16 10:35:31 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
def application, do: [
|
|
|
|
mod: {Lytedev.Application, []},
|
2020-12-16 17:36:13 -06:00
|
|
|
extra_applications: [:logger],
|
2020-12-16 10:35:31 -06:00
|
|
|
]
|
2020-12-17 15:23:16 -06:00
|
|
|
|
|
|
|
def releases, do: [
|
|
|
|
lytedev: [
|
|
|
|
include_executables_for: [:unix],
|
|
|
|
applications: [runtime_tools: :permanent],
|
|
|
|
strip_beams: true,
|
|
|
|
path: Path.join(@build_path, "rel"),
|
|
|
|
include_erts: true,
|
|
|
|
rel_templates_path: Path.join(@src_path, "rel"),
|
|
|
|
# overlays: ["src/static"],
|
|
|
|
steps: [:assemble],
|
2020-12-28 09:34:03 -06:00
|
|
|
runtime_config_path: Path.join(@config_dir_path, "release.exs"),
|
2020-12-17 15:23:16 -06:00
|
|
|
],
|
|
|
|
]
|
2020-12-16 10:35:31 -06:00
|
|
|
end
|