Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Serum.Mixfile do
use Mix.Project
@serum_version "1.2.0"
def project do
[
app: :serum,
version: @serum_version,
elixir: ">= 1.8.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
deps: deps(),
package: package(),
docs: docs()
]
end
def application do
[applications: [:logger, :eex, :cowboy, :tzdata], mod: {Serum, []}]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.travis": :test,
"coveralls.html": :test
]
end
defp deps do
[
{:earmark, "~> 1.3"},
{:file_system, "~> 0.2"},
{:microscope, "~> 1.3"},
{:timex, "~> 3.5"},
{:credo, "~> 1.0", only: [:dev, :test]},
{:excoveralls, "~> 0.11", only: [:test]},
{:dialyxir, "~> 0.5", only: [:dev, :test]},
{:floki, "~> 0.20"},
{:ex_doc, "~> 0.20", only: :dev, runtime: false}
]
end
defp package do
[
name: "serum",
description: "Yet another static website generator written in Elixir",
maintainers: ["Eunbin Jeong"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/Dalgona/Serum",
"Website" => "http://dalgona.github.io/Serum"
}
]
end
defp docs do
[
main: "Serum",
source_url: "https://github.com/Dalgona/Serum",
homepage_url: "https://dalgona.github.io/Serum",
groups_for_modules: [
"Entry Points": [
Serum,
Serum.Build,
Serum.DevServer,
Serum.DevServer.Prompt
],
"Core Types": [
Serum.File,
Serum.Fragment,
Serum.Page,
Serum.Post,
Serum.PostList,
Serum.Project,
Serum.Result,
Serum.Tag,
Serum.Template
],
"Built-in Plugins": [
Serum.Plugins.LiveReloader,
Serum.Plugins.SitemapGenerator,
Serum.Plugins.TableOfContents
],
"Extension Development": [
Serum.HtmlTreeHelper,
Serum.Plugin,
Serum.Theme
]
],
nest_modules_by_prefix: [
Serum,
Serum.Plugins
]
]
end
end