Packages
literature
0.4.6
0.5.1
0.5.0
0.4.22
0.4.21
0.4.20
0.4.19
0.4.18
0.4.17
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
retired
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.32
0.1.30
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
A simple CMS / Blog
Retired package: Release invalid - Package has incorrect liveview deps
Current section
Files
Jump to
Current section
Files
literature
mix.exs
mix.exs
defmodule Literature.MixProject do
use Mix.Project
@version "0.4.6"
def project do
[
app: :literature,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
package: package(),
config_path: "./config/config.exs",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
"coveralls.json": :test,
"coveralls.post": :test
],
dialyzer: [plt_add_apps: [:mix, :ex_unit]],
description: "A simple CMS / Blog"
]
end
def application do
[
mod: {Literature.Application, []},
extra_applications: [:logger, :poolboy]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# JSON
{:jason, "~> 1.4", optional: true},
# Phoenix
{:ecto_sql, "~> 3.9"},
{:phoenix, "~> 1.7"},
{:phoenix_ecto, "~> 4.4"},
{:phoenix_live_view, "~> 0.19 or ~> 1.0"},
{:phoenix_html, "~> 4.1"},
{:phoenix_view, "~> 2.0"},
{:postgrex, ">= 0.0.0", only: :test},
# Pagination
{:flop, "~> 0.26"},
# Images
{:mogrify, "~> 0.9"},
{:waffle, "~> 1.1"},
{:waffle_ecto, "~> 0.0"},
# Others
{:atomex, "~> 0.5"},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:httpoison, "~> 1.0 or ~> 2.0"},
{:sitemapper, "~> 0.7"},
{:slugy, "~> 4.1"},
{:timex, "~> 3.7"},
{:poolboy, "~> 1.5"},
{:ex_cldr_languages, "~> 0.3"},
# Test
{:credo, "~> 1.6", only: [:test, :dev], runtime: false},
{:dialyxir, "~> 1.2", only: [:test, :dev], runtime: false},
{:excoveralls, "~> 0.15", only: :test},
{:floki, "~> 0.33", only: :test},
{:sobelow, "~> 0.11", only: [:test, :dev], runtime: false}
]
end
defp package do
[
maintainers: ["Martide"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/martide/literature"}
]
end
defp aliases do
[
setup: ["deps.get", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"test.ci": [
"format --check-formatted",
"deps.unlock --check-unused",
"credo --strict",
"test --raise",
"dialyzer"
],
"assets.watch": "cmd npm run watch --prefix assets",
"assets.build": [
"cmd npm run build --prefix assets",
"phx.digest",
"phx.digest.clean"
],
publish: [
"cmd npm run build --prefix assets",
"hex.publish"
]
]
end
end