An Elixir library wrapping a webtorrent-hybrid process as an OTP application
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 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. defmodule Ambroisie.MixProject do
  2. use Mix.Project
  3. defp description do
  4. """
  5. An Elixir library wrapping a webtorrent-hybrid process as an OTP application.
  6. """
  7. end
  8. defp package do
  9. {priv, 0} = System.cmd("git", ["ls-files", "priv*"])
  10. [
  11. files: Enum.drop(String.split(priv, "\n"), -1) ++ ["lib", "mix.exs", "README*", "LICENSE"],
  12. maintainers: ["Rigel Kent"],
  13. licenses: ["GPL-3.0-or-later"],
  14. links: %{"GitHub" => "https://github.com/rigelk/ambroisie"}
  15. ]
  16. end
  17. def project do
  18. [
  19. app: :ambroisie,
  20. version: "0.1.0",
  21. elixir: "~> 1.7",
  22. start_permanent: Mix.env() == :prod,
  23. deps: deps(),
  24. description: description(),
  25. package: package(),
  26. aliases: aliases(),
  27. default_task: "all",
  28. preferred_cli_env: [
  29. all: :test
  30. ],
  31. compilers: Mix.compilers() ++ [:typescript],
  32. # Docs
  33. name: "Ambroisie",
  34. source_url: "https://framagit.org/rigelk/ambroisie",
  35. docs: [
  36. # The main page in the docs
  37. main: "Ambroisie",
  38. extras: ["README.md"]
  39. ]
  40. ]
  41. end
  42. # Run "mix help compile.app" to learn about applications.
  43. def application do
  44. [
  45. mod: {AmbroisieApp, %{restore: false}}
  46. ]
  47. end
  48. defp aliases do
  49. [
  50. test: "test --no-start",
  51. all: ["deps.get --only #{Mix.env()}", "test"]
  52. ]
  53. end
  54. # Run "mix help deps" to learn about dependencies.
  55. defp deps do
  56. [
  57. {:gen_stage, "~> 0.14"},
  58. {:stash, "~> 1.0.0"},
  59. {:ex_doc, "~> 0.19", only: :dev}
  60. ]
  61. end
  62. end