Packages
client_utils
0.7.3
0.7.3
0.7.0
0.6.17
0.6.16
0.6.15
0.6.6
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.1.39
0.1.38
0.1.37
0.1.35
0.1.34
0.1.32
0.1.31
0.1.30
0.1.28
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.3
0.1.2
0.1.1
ExUnit formatter with JSON output and distributed test coordination
Current section
Files
Jump to
Current section
Files
client_utils
mix.exs
mix.exs
defmodule ClientUtils.MixProject do
use Mix.Project
@source_url "https://github.com/Code-My-Spec/client_utils"
def project do
[
app: :client_utils,
version: "0.7.3",
elixir: "~> 1.18",
description: "ExUnit formatter with JSON output and distributed test coordination",
package: package(),
docs: docs(),
source_url: @source_url,
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_paths: ["test"],
test_pattern: "*_test.exs"
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
files: ["lib", "priv", "mix.exs", "README.md", "LICENSE"],
maintainers: ["John Davenport"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
extras: ["README.md"]
]
end
defp deps do
[
{:jason, "~> 1.0"},
{:phoenix_live_view, "~> 1.1"},
{:slipstream, "~> 1.1"},
# Onboarding asks the server for this copy's preview address. Creating the
# tunnel behind it needs a Cloudflare credential that must never ship in a
# generated application, so the server does that and this asks.
#
# Free for the applications that consume this: `phx.new` has put
# `{:req, "~> 0.5"}` in every generated mix.exs since 1.7, so it is already
# resolved wherever this runs.
{:req, "~> 0.5"},
# For `ClientUtils.PreviewFraming`. Optional because a consumer that is not
# a web application has no use for it and should not be made to resolve
# it; every Phoenix app already has it, which is every app that could want
# the plug.
{:plug, "~> 1.0", optional: true},
# For the Credo checks in `ClientUtils.Check` and journey coverage, which
# compile and run only where the project has them.
{:credo, "~> 1.7", optional: true, runtime: false},
{:yaml_elixir, "~> 2.11", optional: true},
# For `ClientUtils.JourneyCase` and `ClientUtils.JourneyStage`, which compile
# only where the project tests with them.
{:phoenix_test, "~> 0.14", optional: true},
{:phoenix_test_playwright, "~> 0.19", optional: true, runtime: false},
# For `mix client_utils.hosting.install` and `.upgrade`, which compile only
# where the project has it. An app declares it `only: [:dev, :test]`.
{:igniter, "~> 0.6", optional: true},
# Igniter's `phx_test_project/0` runs its generator for the hosting tests.
{:phx_new, "~> 1.7", only: :test},
{:jsv, "~> 0.27", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
end