defmodule Serum.Mixfile do use Mix.Project @serum_version "1.6.2" def project do [ app: :serum_md, version: @serum_version, elixir: "~> 1.13", 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(), elixirc_paths: elixirc_paths(Mix.env()) ] end def application do [extra_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 [ {:md, "~> 0.9"}, {:file_system, "0.2.10"}, {:microscope, ">= 1.4.0"}, {:timex, "~> 3.7"}, {:credo, "~> 1.6", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.14", only: [:test], runtime: false}, {:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false}, {:floki, "~> 0.33"}, {:ex_doc, "~> 0.28", only: :dev, runtime: false}, {:mix_test_watch, "~> 1.0", only: :dev, runtime: false}, {:mox, "~> 1.0", only: :test} ] end defp package do [ name: "serum_md", description: "Yet another static website generator written in Elixir with MD parser (forked from serum)", maintainers: ["Aleksei Matiushkin"], licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/am-kantox/Serum" } ] end defp docs do [ main: "Serum", source_url: "https://github.com/am-kantox/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.PreviewGenerator, Serum.Plugins.RssGenerator, Serum.Plugins.SitemapGenerator, Serum.Plugins.TableOfContents ], "Extension Development": [ Serum.HtmlTreeHelper, Serum.Plugin, Serum.Theme ] ], nest_modules_by_prefix: [ Serum, Serum.Plugins ] ] end defp elixirc_paths(:test), do: ["test/support", "lib"] defp elixirc_paths(_), do: ["lib"] end