2019-10-03 16:08:36 +13:00
|
|
|
defmodule Ash.MixProject do
|
2020-06-02 17:51:13 +12:00
|
|
|
@moduledoc false
|
2019-10-03 16:08:36 +13:00
|
|
|
use Mix.Project
|
|
|
|
|
2019-12-05 04:18:00 +13:00
|
|
|
@description """
|
2024-05-02 07:23:42 +12:00
|
|
|
A declarative, extensible framework for building Elixir applications.
|
2019-12-05 04:18:00 +13:00
|
|
|
"""
|
|
|
|
|
2024-05-04 23:04:01 +12:00
|
|
|
@version "3.0.0-rc.45"
|
2020-06-01 17:23:33 +12:00
|
|
|
|
2019-10-03 16:08:36 +13:00
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :ash,
|
2020-06-01 17:23:33 +12:00
|
|
|
version: @version,
|
2021-01-22 09:36:49 +13:00
|
|
|
elixir: "~> 1.11",
|
2023-12-23 16:22:59 +13:00
|
|
|
consolidate_protocols: Mix.env() == :prod,
|
2019-10-03 16:08:36 +13:00
|
|
|
start_permanent: Mix.env() == :prod,
|
2019-11-28 18:24:29 +13:00
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
2019-12-05 04:16:34 +13:00
|
|
|
package: package(),
|
|
|
|
deps: deps(),
|
2024-03-28 09:06:40 +13:00
|
|
|
dialyzer: [plt_add_apps: [:mix, :mnesia, :plug, :ex_unit]],
|
2019-12-06 07:45:02 +13:00
|
|
|
docs: docs(),
|
2020-06-02 15:37:50 +12:00
|
|
|
aliases: aliases(),
|
2019-12-05 04:18:00 +13:00
|
|
|
description: @description,
|
2019-12-05 04:16:34 +13:00
|
|
|
source_url: "https://github.com/ash-project/ash",
|
|
|
|
homepage_url: "https://github.com/ash-project/ash"
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2023-06-23 08:26:03 +12:00
|
|
|
def application do
|
|
|
|
[
|
|
|
|
extra_applications: [:mnesia]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-06-02 17:51:13 +12:00
|
|
|
defp docs do
|
2020-06-14 18:39:11 +12:00
|
|
|
[
|
2024-05-02 04:54:15 +12:00
|
|
|
main: "readme",
|
2020-06-14 18:39:11 +12:00
|
|
|
source_ref: "v#{@version}",
|
|
|
|
logo: "logos/small-logo.png",
|
2020-07-10 01:25:48 +12:00
|
|
|
extra_section: "GUIDES",
|
2024-01-13 08:07:35 +13:00
|
|
|
extras: [
|
2024-05-02 04:54:15 +12:00
|
|
|
{"README.md", title: "Home"},
|
2024-01-13 08:07:35 +13:00
|
|
|
"documentation/tutorials/get-started.md",
|
2024-04-06 11:18:35 +13:00
|
|
|
"documentation/topics/about_ash/what-is-ash.md",
|
|
|
|
"documentation/topics/about_ash/design-principles.md",
|
|
|
|
"documentation/topics/about_ash/contributing-to-ash.md",
|
2024-04-09 09:26:19 +12:00
|
|
|
"documentation/topics/resources/domains.md",
|
2024-04-08 02:11:19 +12:00
|
|
|
"documentation/topics/resources/attributes.md",
|
2024-04-08 07:31:26 +12:00
|
|
|
"documentation/topics/resources/relationships.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/topics/resources/calculations.md",
|
|
|
|
"documentation/topics/resources/aggregates.md",
|
2024-04-09 04:05:36 +12:00
|
|
|
"documentation/topics/resources/validations.md",
|
|
|
|
"documentation/topics/resources/changes.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/topics/resources/code-interfaces.md",
|
|
|
|
"documentation/topics/resources/embedded-resources.md",
|
|
|
|
"documentation/topics/resources/identities.md",
|
|
|
|
"documentation/topics/resources/notifiers.md",
|
2024-04-08 00:01:46 +12:00
|
|
|
"documentation/topics/actions/actions.md",
|
|
|
|
"documentation/topics/actions/read-actions.md",
|
|
|
|
"documentation/topics/actions/create-actions.md",
|
|
|
|
"documentation/topics/actions/update-actions.md",
|
|
|
|
"documentation/topics/actions/destroy-actions.md",
|
|
|
|
"documentation/topics/actions/generic-actions.md",
|
2024-04-08 03:11:05 +12:00
|
|
|
"documentation/topics/actions/manual-actions.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/topics/advanced/reactor.md",
|
|
|
|
"documentation/topics/advanced/monitoring.md",
|
|
|
|
"documentation/topics/advanced/timeouts.md",
|
|
|
|
"documentation/topics/advanced/multitenancy.md",
|
2024-04-09 09:26:19 +12:00
|
|
|
"documentation/topics/advanced/writing-extensions.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/topics/development/project-structure.md",
|
2024-04-09 09:26:19 +12:00
|
|
|
"documentation/topics/development/error-handling.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/topics/development/testing.md",
|
2024-04-07 07:44:39 +12:00
|
|
|
"documentation/topics/development/development-utilities.md",
|
|
|
|
"documentation/topics/development/upgrading-to-3.0.md",
|
2024-04-07 09:40:05 +12:00
|
|
|
"documentation/topics/security/actors-and-authorization.md",
|
|
|
|
"documentation/topics/security/sensitive-data.md",
|
|
|
|
"documentation/topics/security/policies.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/topics/reference/glossary.md",
|
|
|
|
"documentation/topics/reference/expressions.md",
|
2024-05-04 17:10:04 +12:00
|
|
|
"documentation/how-to/cook-book/optimistic-locking.livemd",
|
2024-05-05 01:57:34 +12:00
|
|
|
"documentation/how-to/cook-book/state-machines.livemd",
|
2024-04-06 11:18:35 +13:00
|
|
|
"documentation/dsls/DSL:-Ash.Resource.md",
|
|
|
|
"documentation/dsls/DSL:-Ash.Domain.md",
|
|
|
|
"documentation/dsls/DSL:-Ash.Notifier.PubSub.md",
|
|
|
|
"documentation/dsls/DSL:-Ash.Policy.Authorizer.md",
|
|
|
|
"documentation/dsls/DSL:-Ash.DataLayer.Ets.md",
|
|
|
|
"documentation/dsls/DSL:-Ash.DataLayer.Mnesia.md",
|
|
|
|
"documentation/dsls/DSL:-Ash.Reactor.md",
|
2024-04-09 05:39:45 +12:00
|
|
|
"documentation/dsls/DSL:-Ash.DataLayer.Mnesia.md",
|
2024-04-09 09:42:27 +12:00
|
|
|
"CHANGELOG.md"
|
2024-01-13 08:07:35 +13:00
|
|
|
],
|
|
|
|
groups_for_extras: [
|
2024-04-06 05:24:12 +13:00
|
|
|
"Start Here": [
|
|
|
|
"documentation/home.md",
|
|
|
|
"documentation/tutorials/get-started.md"
|
|
|
|
],
|
2024-05-02 05:34:50 +12:00
|
|
|
Tutorials: ~r"documentation/tutorials",
|
2024-04-09 07:54:08 +12:00
|
|
|
"About Ash": [
|
2024-05-02 05:34:50 +12:00
|
|
|
~r"documentation/topics/about_ash",
|
2024-04-09 07:54:08 +12:00
|
|
|
"CHANGELOG.md"
|
|
|
|
],
|
2024-05-02 05:34:50 +12:00
|
|
|
Resources: ~r"documentation/topics/resources",
|
|
|
|
Actions: ~r"documentation/topics/actions",
|
|
|
|
Security: ~r"documentation/topics/security",
|
|
|
|
Development: ~r"documentation/topics/development",
|
|
|
|
Advanced: ~r"documentation/topics/advanced",
|
2024-05-05 01:57:34 +12:00
|
|
|
"Cook Book": ~r"documentation/how-to/cook-book",
|
2024-05-02 05:34:50 +12:00
|
|
|
"How To": ~r"documentation/how-to",
|
2024-04-08 00:05:23 +12:00
|
|
|
Reference: [
|
2024-05-02 05:34:50 +12:00
|
|
|
~r"documentation/topics/reference",
|
|
|
|
~r"documentation/dsls"
|
2024-04-06 05:24:12 +13:00
|
|
|
]
|
2024-01-13 08:07:35 +13:00
|
|
|
],
|
2024-03-28 09:48:30 +13:00
|
|
|
skip_undefined_reference_warnings_on: [
|
|
|
|
"CHANGELOG.md",
|
2024-04-08 02:13:33 +12:00
|
|
|
"documentation/topics/reference/glossary.md",
|
2024-04-07 07:44:39 +12:00
|
|
|
"documentation/topics/development/upgrading-to-3.0.md"
|
2024-03-28 09:48:30 +13:00
|
|
|
],
|
2024-01-13 08:07:35 +13:00
|
|
|
nest_modules_by_prefix: [
|
|
|
|
Ash.Error,
|
|
|
|
Ash.Policy.Authorizer,
|
2024-03-28 09:06:40 +13:00
|
|
|
Ash.Domain.Transformers,
|
|
|
|
Ash.Domain.Verifiers,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.Resource.Transformers,
|
|
|
|
Ash.Resource.Verifiers,
|
|
|
|
Ash.Query.Function,
|
|
|
|
Ash.Query.Operator,
|
|
|
|
Ash.Resource.Change,
|
|
|
|
Ash.Resource.Validation,
|
|
|
|
Ash.Policy.Check
|
|
|
|
],
|
2023-10-03 01:32:13 +13:00
|
|
|
before_closing_head_tag: fn type ->
|
|
|
|
if type == :html do
|
|
|
|
"""
|
2023-10-03 03:33:58 +13:00
|
|
|
<script>
|
2023-10-03 03:55:20 +13:00
|
|
|
if (location.hostname === "hexdocs.pm") {
|
2023-10-03 03:33:58 +13:00
|
|
|
var script = document.createElement("script");
|
|
|
|
script.src = "https://plausible.io/js/script.js";
|
|
|
|
script.setAttribute("defer", "defer")
|
|
|
|
script.setAttribute("data-domain", "ashhexdocs")
|
2023-10-03 03:55:20 +13:00
|
|
|
document.head.appendChild(script);
|
2023-10-03 03:33:58 +13:00
|
|
|
}
|
|
|
|
</script>
|
2024-05-05 01:57:34 +12:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
|
|
|
<script>mermaid.initialize({startOnLoad: true})</script>
|
2023-10-03 01:32:13 +13:00
|
|
|
"""
|
|
|
|
end
|
|
|
|
end,
|
2020-06-14 18:39:11 +12:00
|
|
|
groups_for_modules: [
|
2022-08-24 11:55:36 +12:00
|
|
|
Resources: [
|
2024-03-28 09:06:40 +13:00
|
|
|
Ash.Resource.Calculation,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Resource.Calculation.Builtins,
|
|
|
|
Ash.CodeInterface,
|
|
|
|
Ash.DataLayer,
|
|
|
|
Ash.Notifier,
|
|
|
|
Ash.Notifier.Notification,
|
|
|
|
Ash.Resource.ManualRead,
|
2023-01-04 03:10:53 +13:00
|
|
|
Ash.Resource.ManualCreate,
|
|
|
|
Ash.Resource.ManualUpdate,
|
|
|
|
Ash.Resource.ManualDestroy,
|
2023-01-27 16:18:14 +13:00
|
|
|
Ash.Resource.ManualRelationship,
|
|
|
|
Ash.Resource.Attribute.Helpers
|
2022-08-24 11:55:36 +12:00
|
|
|
],
|
2024-01-13 08:07:35 +13:00
|
|
|
"Action Input & Interface": [
|
|
|
|
Ash,
|
2024-03-28 09:06:40 +13:00
|
|
|
Ash.Domain,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.Query,
|
|
|
|
Ash.Changeset,
|
|
|
|
Ash.ActionInput,
|
|
|
|
Ash.BulkResult
|
|
|
|
],
|
2022-08-24 11:55:36 +12:00
|
|
|
Queries: [
|
2020-07-12 18:25:53 +12:00
|
|
|
Ash.Query,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Resource.Preparation,
|
|
|
|
Ash.Resource.Preparation.Builtins,
|
|
|
|
Ash.Query.Calculation,
|
|
|
|
Ash.Query.Aggregate
|
|
|
|
],
|
|
|
|
Changesets: [
|
2020-10-12 16:55:47 +13:00
|
|
|
Ash.Changeset,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Resource.Change,
|
|
|
|
Ash.Resource.Change.Builtins,
|
|
|
|
Ash.Resource.Validation,
|
|
|
|
Ash.Resource.Validation.Builtins
|
2020-06-14 18:39:11 +12:00
|
|
|
],
|
2022-08-24 11:55:36 +12:00
|
|
|
Authorization: [
|
|
|
|
Ash.Authorizer,
|
|
|
|
Ash.Policy.Check,
|
2022-09-08 07:03:09 +12:00
|
|
|
Ash.Policy.Check.Builtins,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Policy.FilterCheck,
|
|
|
|
Ash.Policy.SimpleCheck
|
2021-03-15 11:29:30 +13:00
|
|
|
],
|
2024-01-13 08:07:35 +13:00
|
|
|
Extensions: [
|
|
|
|
Ash.Resource,
|
|
|
|
Ash.DataLayer.Ets,
|
|
|
|
Ash.DataLayer.Mnesia,
|
|
|
|
Ash.DataLayer.Simple,
|
|
|
|
Ash.Notifier.PubSub,
|
|
|
|
Ash.Policy.Authorizer,
|
2024-03-02 10:26:25 +13:00
|
|
|
Ash.Reactor
|
2024-01-13 08:07:35 +13:00
|
|
|
],
|
2022-08-24 11:55:36 +12:00
|
|
|
Introspection: [
|
2024-03-28 09:06:40 +13:00
|
|
|
Ash.Domain.Info,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Resource.Info,
|
|
|
|
Ash.Policy.Info,
|
|
|
|
Ash.DataLayer.Ets.Info,
|
|
|
|
Ash.DataLayer.Mnesia.Info,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.Notifier.PubSub.Info,
|
2024-03-28 09:06:40 +13:00
|
|
|
~r/Ash.Domain.Dsl.*/
|
2022-02-03 11:02:28 +13:00
|
|
|
],
|
2022-08-24 11:55:36 +12:00
|
|
|
Utilities: [
|
2023-03-21 16:11:55 +13:00
|
|
|
Ash.Expr,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Page,
|
|
|
|
Ash.Page.Keyset,
|
|
|
|
Ash.Page.Offset,
|
|
|
|
Ash.Filter,
|
|
|
|
Ash.Filter.Runtime,
|
|
|
|
Ash.Sort,
|
|
|
|
Ash.CiString,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.Vector,
|
2023-02-15 15:12:39 +13:00
|
|
|
Ash.Union,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.UUID,
|
|
|
|
Ash.NotLoaded,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.ForbiddenField,
|
2022-08-24 11:55:36 +12:00
|
|
|
Ash.Changeset.ManagedRelationshipHelpers,
|
|
|
|
Ash.DataLayer.Simple,
|
|
|
|
Ash.Filter.Simple,
|
|
|
|
Ash.Filter.Simple.Not,
|
2022-10-25 07:06:07 +13:00
|
|
|
Ash.OptionsHelpers,
|
2022-11-16 10:47:06 +13:00
|
|
|
Ash.Resource.Builder,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.ProcessHelpers,
|
|
|
|
Ash.Mix.Tasks.Helpers,
|
|
|
|
Ash.PlugHelpers,
|
|
|
|
Ash.SatSolver
|
|
|
|
],
|
|
|
|
Visualizations: [
|
2024-03-28 09:06:40 +13:00
|
|
|
Ash.Domain.Info.Diagram,
|
|
|
|
Ash.Domain.Info.Livebook,
|
2024-01-13 08:07:35 +13:00
|
|
|
Ash.Policy.Chart.Mermaid
|
2021-01-29 08:47:59 +13:00
|
|
|
],
|
2022-08-24 11:55:36 +12:00
|
|
|
Testing: [
|
|
|
|
Ash.Generator,
|
|
|
|
Ash.Seed,
|
|
|
|
Ash.Test
|
2020-10-07 18:20:03 +13:00
|
|
|
],
|
2024-01-13 08:07:35 +13:00
|
|
|
Tracing: [
|
|
|
|
Ash.Tracer,
|
|
|
|
Ash.Tracer.Simple,
|
|
|
|
Ash.Tracer.Simple.Span
|
|
|
|
],
|
2023-01-18 18:34:20 +13:00
|
|
|
Types: [
|
|
|
|
"Ash.Type",
|
|
|
|
~r/Ash.Type\./
|
|
|
|
],
|
2022-08-24 11:55:36 +12:00
|
|
|
Errors: [
|
2021-03-20 11:23:48 +13:00
|
|
|
Ash.Error,
|
2023-01-18 18:34:20 +13:00
|
|
|
~r/Ash.Error\./
|
2021-01-29 08:47:59 +13:00
|
|
|
],
|
2024-01-13 08:07:35 +13:00
|
|
|
"DSL Transformers": [
|
|
|
|
~r/\.Transformers\./,
|
2024-03-28 09:06:40 +13:00
|
|
|
~r/\.Verifiers\./
|
2024-01-13 08:07:35 +13:00
|
|
|
],
|
|
|
|
Expressions: [
|
|
|
|
Ash.Filter.Predicate,
|
|
|
|
Ash.Filter.Simple,
|
|
|
|
Ash.Filter.Simple.Not,
|
|
|
|
~r/Ash.Query.Operator/,
|
|
|
|
~r/Ash.Query.Function/,
|
|
|
|
~r/Ash.Query.Ref/,
|
|
|
|
Ash.Query.Not,
|
|
|
|
Ash.Query.Call,
|
|
|
|
Ash.Query.BooleanExpression,
|
|
|
|
Ash.Query.Exists,
|
|
|
|
Ash.Query.Parent
|
|
|
|
],
|
|
|
|
Builtins: [
|
|
|
|
~r/Ash.Resource.Validation/,
|
|
|
|
~r/Ash.Resource.Change/,
|
|
|
|
~r/Ash.Policy.Check/
|
|
|
|
],
|
|
|
|
Introspection: [
|
|
|
|
~r/Ash.Resource.Relationships/,
|
|
|
|
~r/Ash.Resource.Calculation/,
|
|
|
|
~r/Ash.Resource.Interface/,
|
|
|
|
~r/Ash.Resource.Identity/,
|
|
|
|
~r/Ash.Resource.Attribute/,
|
|
|
|
~r/Ash.Resource.Attribute/,
|
|
|
|
~r/Ash.Resource.Aggregate/,
|
|
|
|
~r/Ash.Resource.Actions/,
|
|
|
|
Ash.Mix.Tasks.Helpers,
|
|
|
|
Ash.Policy.FieldPolicy,
|
|
|
|
Ash.Policy.Policy,
|
|
|
|
Ash.Notifier.PubSub.Publication
|
2024-01-20 04:02:15 +13:00
|
|
|
],
|
|
|
|
Internals: ~r/.*/
|
2020-06-14 18:39:11 +12:00
|
|
|
]
|
|
|
|
]
|
2019-12-06 07:45:02 +13:00
|
|
|
end
|
|
|
|
|
2019-12-05 04:16:34 +13:00
|
|
|
defp package do
|
|
|
|
[
|
2020-07-21 14:16:28 +12:00
|
|
|
name: :ash,
|
2019-12-05 04:16:34 +13:00
|
|
|
licenses: ["MIT"],
|
2022-08-20 05:13:27 +12:00
|
|
|
files: ~w(lib .formatter.exs mix.exs README* LICENSE*
|
|
|
|
CHANGELOG* documentation),
|
2019-12-05 04:16:34 +13:00
|
|
|
links: %{
|
2024-01-19 18:05:42 +13:00
|
|
|
GitHub: "https://github.com/ash-project/ash",
|
|
|
|
Discord: "https://discord.gg/HTHRaaVPUc",
|
|
|
|
Website: "https://ash-hq.org",
|
|
|
|
Forum: "https://elixirforum.com/c/elixir-framework-forums/ash-framework-forum"
|
2019-12-05 04:16:34 +13:00
|
|
|
}
|
2019-10-03 16:08:36 +13:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2019-11-28 18:24:29 +13:00
|
|
|
defp elixirc_paths(:test) do
|
|
|
|
["lib", "test/support"]
|
|
|
|
end
|
|
|
|
|
2019-11-29 19:54:11 +13:00
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
2019-11-28 18:24:29 +13:00
|
|
|
|
2019-10-03 16:08:36 +13:00
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
2019-11-28 18:24:29 +13:00
|
|
|
[
|
2024-03-28 09:06:40 +13:00
|
|
|
# DSLs
|
2024-04-13 06:14:01 +12:00
|
|
|
{:spark, "~> 2.1 and >= 2.1.18"},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Ash resources are backed by ecto scheams
|
2021-09-14 03:44:56 +12:00
|
|
|
{:ecto, "~> 3.7"},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Used by the ETS data layer
|
2023-09-14 14:16:39 +12:00
|
|
|
{:ets, "~> 0.8"},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Data & types
|
2021-01-10 05:47:50 +13:00
|
|
|
{:decimal, "~> 2.0"},
|
2021-01-22 09:21:58 +13:00
|
|
|
{:comparable, "~> 1.0"},
|
2021-01-23 12:20:08 +13:00
|
|
|
{:jason, ">= 1.0.0"},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Observability
|
2022-08-27 09:57:03 +12:00
|
|
|
{:telemetry, "~> 1.1"},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Used for providing Ash.Reactor, will be used more in the future
|
2024-03-19 10:59:41 +13:00
|
|
|
{:reactor, "~> 0.8 and >= 0.8.1"},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Used for Ash.PlugHelpers
|
2022-11-21 05:14:58 +13:00
|
|
|
{:plug, ">= 0.0.0", optional: true},
|
2024-03-28 09:06:40 +13:00
|
|
|
# Used for aggregatable and standardized exceptions
|
|
|
|
{:splode, "~> 0.2"},
|
|
|
|
# Testing Utilities
|
|
|
|
{:stream_data, "~> 0.6"},
|
|
|
|
|
|
|
|
# SAT Solvers
|
|
|
|
{:picosat_elixir, "~> 0.2", optional: true},
|
|
|
|
{:simple_sat, "~> 0.1 and >= 0.1.1", optional: true},
|
2024-03-02 10:26:25 +13:00
|
|
|
|
2021-01-10 05:47:50 +13:00
|
|
|
# Dev/Test dependencies
|
2024-01-20 03:58:54 +13:00
|
|
|
{:eflame, "~> 1.0", only: [:dev, :test]},
|
2024-04-11 01:55:52 +12:00
|
|
|
{:ex_doc, "~> 0.32", only: [:dev, :test], runtime: false},
|
2023-09-14 14:16:39 +12:00
|
|
|
{:ex_check, "~> 0.12", only: [:dev, :test]},
|
2023-02-01 05:39:34 +13:00
|
|
|
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
2024-03-02 10:26:25 +13:00
|
|
|
{:mimic, "~> 1.7", only: [:test]},
|
2023-02-01 05:39:34 +13:00
|
|
|
{:sobelow, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
|
|
|
{:git_ops, "~> 2.5", only: [:dev, :test]},
|
2024-03-28 09:06:40 +13:00
|
|
|
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false},
|
2023-02-01 05:39:34 +13:00
|
|
|
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
|
2023-02-01 05:15:09 +13:00
|
|
|
{:benchee, "~> 1.1", only: [:dev, :test]},
|
|
|
|
{:doctor, "~> 0.21", only: [:dev, :test]}
|
2019-11-28 18:24:29 +13:00
|
|
|
]
|
2019-10-03 16:08:36 +13:00
|
|
|
end
|
2020-06-02 15:37:50 +12:00
|
|
|
|
2020-06-02 17:47:25 +12:00
|
|
|
defp aliases do
|
|
|
|
[
|
|
|
|
sobelow: "sobelow --skip",
|
2020-06-15 18:40:33 +12:00
|
|
|
credo: "credo --strict",
|
2023-09-14 14:16:39 +12:00
|
|
|
docs: [
|
|
|
|
"spark.cheat_sheets",
|
|
|
|
"docs",
|
2023-09-27 16:13:40 +13:00
|
|
|
"spark.replace_doc_links",
|
2023-09-14 14:16:39 +12:00
|
|
|
"spark.cheat_sheets_in_search"
|
|
|
|
],
|
|
|
|
"spark.cheat_sheets_in_search":
|
2024-03-28 09:06:40 +13:00
|
|
|
"spark.cheat_sheets_in_search --extensions Ash.Resource.Dsl,Ash.Domain.Dsl,Ash.DataLayer.Ets,Ash.DataLayer.Mnesia,Ash.Notifier.PubSub,Ash.Policy.Authorizer,Ash.Reactor",
|
2022-08-16 08:02:22 +12:00
|
|
|
"spark.formatter":
|
2024-03-28 09:06:40 +13:00
|
|
|
"spark.formatter --extensions Ash.Resource.Dsl,Ash.Domain.Dsl,Ash.DataLayer.Ets,Ash.DataLayer.Mnesia,Ash.Notifier.PubSub,Ash.Policy.Authorizer,Ash.Reactor",
|
2023-09-14 14:16:39 +12:00
|
|
|
"spark.cheat_sheets":
|
2024-03-28 09:06:40 +13:00
|
|
|
"spark.cheat_sheets --extensions Ash.Resource.Dsl,Ash.Domain.Dsl,Ash.DataLayer.Ets,Ash.DataLayer.Mnesia,Ash.Notifier.PubSub,Ash.Policy.Authorizer,Ash.Reactor"
|
2020-06-02 17:47:25 +12:00
|
|
|
]
|
2020-06-02 15:37:50 +12:00
|
|
|
end
|
2019-10-03 16:08:36 +13:00
|
|
|
end
|