Packages
http_fetch
0.21.11
0.21.13
0.21.12
0.21.11
0.21.10
0.21.9
0.21.8
0.21.7
0.21.6
0.21.5
0.21.4
0.21.3
0.21.2
0.21.1
0.21.0
0.20.0
0.19.1
0.19.0
0.18.1
0.18.0
0.17.2
0.17.1
0.17.0
0.16.7
0.16.5
0.16.1
0.16.0
0.15.1
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.10.0
0.9.1
0.9.0
0.8.0
0.6.0
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
A browser-like HTTP fetch API for Elixir using Erlang's built-in socket modules
Current section
Files
Jump to
Current section
Files
http_fetch
mix.exs
mix.exs
defmodule HttpFetch.MixProject do
use Mix.Project
@version "0.21.11"
@source_url "https://github.com/gsmlg-dev/http_fetch"
def project do
[
app: :http_fetch,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
dialyzer: dialyzer(),
aliases: aliases(),
description:
"A browser-like HTTP fetch API for Elixir using Erlang's built-in socket modules",
package: [
files: ["lib", "mix.exs", "LICENSE", "README.md", "CHANGELOG.md"],
maintainers: ["Jonathan Gao"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
],
docs: [
main: "readme",
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}",
source_url: @source_url
]
]
end
def cli do
[
preferred_envs: ["test.e2e": :test]
]
end
# Specifies which paths to compile per environment.
# `e2e/support` is added so the helpers (Server, ResponseView, SSE) are
# available to e2e tests under `e2e/`.
defp elixirc_paths(:test), do: ["lib", "test/support", "e2e/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :public_key, :ssl],
mod: {HTTPFetch.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:http_core, "== 0.21.11", hex: :http_core},
{:http_runtime, "== 0.21.11", hex: :http_runtime},
{:telemetry, "~> 1.0"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:briefly, "~> 0.4", only: :test},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp dialyzer do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:ex_unit, :mix],
flags: [:unmatched_returns, :error_handling, :underspecs],
ignore_warnings: "../../.dialyzer_ignore.exs"
]
end
defp aliases do
[
# `mix test.e2e [path]` runs the e2e test files (optionally filtered
# to a single file or line range).
"test.e2e": [&run_e2e_tests/1]
]
end
defp run_e2e_tests(args) do
# If the user passed file paths or line refs, run only those.
# Otherwise, run everything under `e2e/`.
if Enum.any?(args) do
Mix.Task.run("test", args)
else
Mix.Task.run("test", ["e2e/"])
end
end
end