chore: fix build and add web_module/0
Some checks failed
CI / ash-ci (push) Has been cancelled

This commit is contained in:
Zach Daniel 2024-08-21 12:07:59 -04:00
parent 2d04897e1a
commit 4d80d01be5
2 changed files with 8 additions and 1 deletions

View file

@ -459,7 +459,6 @@ defmodule Igniter do
|> Rewrite.Source.update(:file_creator, :content, contents)
if has_source? do
IO.inspect(opts)
{already_exists(igniter, path, Keyword.get(opts, :on_exists, :error)), source}
else
{igniter, source}

View file

@ -1,6 +1,14 @@
defmodule Igniter.Libs.Phoenix do
@moduledoc "Codemods & utilities for working with Phoenix"
@doc """
Returns the web module name for the current app
"""
@spec web_module_name() :: module()
def web_module_name do
Module.concat([inspect(Igniter.Code.Module.module_name_prefix()) <> "Web"])
end
@doc """
Generates a module name that lives in the Web directory of the current app.
"""