Skip to content

Commit

Permalink
feat: Add absinthe dependency and plugin in formatter of installer (#222
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aifrak authored Oct 4, 2024
1 parent 85e59db commit d2312f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mix/tasks/ash_graphql.install.ex
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
defmodule Mix.Tasks.AshGraphql.Install do
@moduledoc "Installs AshGraphql. Should be run with `mix igniter.install ash_postgres`"
@moduledoc "Installs AshGraphql. Should be run with `mix igniter.install ash_graphql`"
@shortdoc @moduledoc
require Igniter.Code.Common
use Igniter.Mix.Task

def igniter(igniter, _argv) do
igniter =
igniter
|> Igniter.Project.Formatter.import_dep(:absinthe)
|> Igniter.Project.Formatter.import_dep(:ash_graphql)
|> Igniter.Project.Formatter.add_formatter_plugin(Absinthe.Formatter)
|> Spark.Igniter.prepend_to_section_order(:"Ash.Resource", [:graphql])
|> Spark.Igniter.prepend_to_section_order(:"Ash.Domain", [:graphql])

Expand Down

0 comments on commit d2312f6

Please sign in to comment.