Provide helper facilities that implement common IndieWeb and Microformats2 algorithms. https://black.af/projects/indieweb-elixir/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mix.exs 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. defmodule IndieWeb.MixProject do
  2. use Mix.Project
  3. @description "Helpers and facilities for working with the IndieWeb."
  4. def project do
  5. [
  6. aliases: aliases(),
  7. app: :indieweb,
  8. name: "IndieWeb",
  9. version: "0.0.42",
  10. elixir: "~> 1.7",
  11. elixirc_paths: elixirc_paths(Mix.env()),
  12. start_permanent: Mix.env() == :prod,
  13. build_embedded: Mix.env() == :prod,
  14. description: @description,
  15. package: package(),
  16. test_coverage: [tool: ExCoveralls],
  17. preferred_cli_env: [
  18. ci: :test,
  19. test: :test,
  20. "coveralls.detail": :test
  21. ],
  22. deps: deps(),
  23. homepage_url: "https://indieweb.org/",
  24. docs: [
  25. source_url: "https://git.jacky.wtf/indieweb/elixir",
  26. source_url_pattern:
  27. "https://git.jacky.wtf/indieweb/elixir/src/branch/master/%{path}#L%{line}",
  28. logo: "priv/static/images/logo.png",
  29. extras: Path.wildcard("docs/*.markdown")
  30. ]
  31. ]
  32. end
  33. def application do
  34. [
  35. mod: {IndieWeb.Application, []},
  36. extra_applications: [:logger, :cachex, :runtime_tools]
  37. ]
  38. end
  39. defp deps do
  40. [
  41. {:apex, "~> 1.2.1", only: [:dev, :test]},
  42. {:cachex, "~> 3.1.0"},
  43. {:ex_doc, "~> 0.19", only: [:dev, :test], runtime: false},
  44. {:excoveralls, "~> 0.10.0", only: [:test]},
  45. {:exvcr, "~> 0.10.0", only: :test, runtime: false},
  46. {:faker, "~> 0.12.0", only: :test, runtime: false},
  47. {:jason, "~> 1.0"},
  48. {:hackney, "~> 1.15.1"},
  49. {:microformats2, "~> 0.2.0"},
  50. {:tesla,
  51. git: "https://github.com/jalcine/tesla",
  52. branch: "jalcine/check-regex-run-results",
  53. override: true},
  54. {:tesla_request_id, "~> 0.2.0"}
  55. ]
  56. end
  57. defp package() do
  58. [
  59. name: "indieweb",
  60. description:
  61. "Collection of common IndieWeb utilites like authorship resolution, Webmention, post type discovery and IndieAuth.",
  62. licenses: ["APGL v3.0"],
  63. links: %{
  64. "Source Code" => "https://git.jacky.wtf/indieweb/elixir",
  65. "IndieWeb" => "https://indieweb.org",
  66. "IndieAuth spec" => "https://indieauth.spec.indieweb.org"
  67. }
  68. ]
  69. end
  70. defp elixirc_paths(:test), do: ["lib", "test/support"]
  71. defp elixirc_paths(_), do: ["lib"]
  72. defp aliases do
  73. [
  74. ci: ["test --include slow:true --cover", "coveralls.detail"]
  75. ]
  76. end
  77. end