Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Watchdog.Mixfile do
use Mix.Project
@version "0.1.2"
def project do
[app: :watchdog,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
description: description(),
package: package(),
deps: deps(),
docs: [extras: ["README.md"], main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/uberous/watchdog"]]
end
def elixirc_paths(:test), do: ["lib", "test/support", "test/fixtures"]
def elixirc_paths(_env), do: ["lib"]
def application do
[extra_applications: [:logger],
mod: {Watchdog.Application, []}]
end
defp deps do
[{:ex_doc, "~> 0.12", optional: true, only: [:dev, :test]},
{:sentix, "~> 1.0"}]
end
defp package do
[name: :watchdog,
files: ["config", "lib", "mix.exs", "LICENSE", "*.md"],
maintainers: ["Jeroen Visser"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/uberous/watchdog",
"Docs" => "https://hexdocs.pm/watchdog"}]
end
defp description do
"""
Watchdog is a library that handles file system events. It's like Guard, but
for Elixir.
"""
end
end