defmodule Drab.Mixfile do use Mix.Project @version "0.5.0" def project do [app: :drab, version: @version, elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, elixirc_paths: elixirc_paths(Mix.env), deps: deps(), description: description(), package: package(), docs: [main: "Drab", logo: "priv/static/drab-400.png", extras: ["README.md", "LICENSE.md", "CHANGELOG.md"]], # , filter_prefix: "Drab." compilers: [:phoenix, :gettext] ++ Mix.compilers # compilers: [:phoenix, :gettext] ++ Mix.compilers ++ [:drab] ] end def application do #TODO: make it compatible with Phoenix 1.3 [mod: {Drab.Supervisor, []}, applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger]] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(:dev), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp deps do [{:phoenix, "~> 1.2"}, {:phoenix_html, "~> 2.6"}, {:phoenix_pubsub, "~> 1.0"}, {:phoenix_live_reload, "~> 1.0", only: :dev}, {:gettext, "~> 0.11"}, {:cowboy, "~> 1.0"}, {:ex_doc, "~> 0.16", only: :dev}, {:deppie, "~> 1.0"}, {:hound, "~> 1.0"}, ### , only: [:dev, :test] {:floki, "~> 0.17.0"} ] end defp description() do """ Plugin to the Phoenix Framework to query and manipulate User Interface in the browser directly from Elixir. """ end defp package() do [ name: :drab, # files: ["lib", "priv", "test", "mix.exs", "README*", "LICENSE*"], files: ["lib", "priv", "mix.exs", "README*", "LICENSE*"], maintainers: ["Tomek Gryszkiewicz"], licenses: ["MIT"], links: %{ "GitHub" => "https://github.com/grych/drab", "Docs with Examples" => "https://tg.pl/drab/docs", "Home" => "https://tg.pl/drab" } ] end end