Let's be consistent about code reuse
This commit is contained in:
parent
c055b2b08e
commit
d44c211a62
30
mix.exs
30
mix.exs
|
@ -1,16 +1,29 @@
|
||||||
defmodule Lytedev.MixProject do
|
defmodule Lytedev.MixProject do
|
||||||
use Mix.Project
|
use Mix.Project
|
||||||
|
|
||||||
|
@src_path "src"
|
||||||
|
@config_path Path.join(@src_path, "config.exs")
|
||||||
|
@test_path Path.join(@src_path, "test")
|
||||||
@build_path "build"
|
@build_path "build"
|
||||||
@deps_path Path.join(@build_path, "deps")
|
@deps_path Path.join(@build_path, "deps")
|
||||||
|
@docs_path Path.join(@build_path, "docs")
|
||||||
|
|
||||||
|
def deps, do: [
|
||||||
|
{:ex_doc, "~> 0.23.0", only: :dev},
|
||||||
|
{:jason, "~> 1.0"},
|
||||||
|
{:finch, "~> 0.5"},
|
||||||
|
{:elli, "~> 3.0"},
|
||||||
|
]
|
||||||
|
|
||||||
|
def docs, do: [output: @docs_path]
|
||||||
|
|
||||||
def project(), do: [
|
def project(), do: [
|
||||||
app: :lytedev,
|
app: :lytedev,
|
||||||
version: "0.1.0",
|
version: "0.1.0",
|
||||||
elixir: "~> 1.7",
|
elixir: "~> 1.7",
|
||||||
elixirc_paths: ["src"],
|
elixirc_paths: [@src_path],
|
||||||
config_path: "src/config.exs",
|
config_path: @config_path,
|
||||||
test_paths: ["src/test"],
|
test_paths: [@test_path],
|
||||||
start_permanent: true,
|
start_permanent: true,
|
||||||
build_path: @build_path,
|
build_path: @build_path,
|
||||||
deps_path: @deps_path,
|
deps_path: @deps_path,
|
||||||
|
@ -22,15 +35,4 @@ defmodule Lytedev.MixProject do
|
||||||
mod: {Lytedev.Application, []},
|
mod: {Lytedev.Application, []},
|
||||||
extra_applications: [:logger],
|
extra_applications: [:logger],
|
||||||
]
|
]
|
||||||
|
|
||||||
def deps, do: [
|
|
||||||
{:ex_doc, "~> 0.23.0", only: :dev},
|
|
||||||
{:jason, "~> 1.0"},
|
|
||||||
{:finch, "~> 0.5"},
|
|
||||||
{:elli, "~> 3.0"},
|
|
||||||
]
|
|
||||||
|
|
||||||
def docs, do: [
|
|
||||||
output: "build/docs",
|
|
||||||
]
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue