Skip to content

Commit

Permalink
don't format heex files
Browse files Browse the repository at this point in the history
  • Loading branch information
type1fool committed Sep 15, 2023
1 parent 523a1f4 commit 6000052
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/wac_gen/components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ defmodule Wac.Gen.Components do
source = Path.join([template_dir, file_name])
target = Path.join(["lib", web_snake_case, "components", file_name])
Mix.Generator.copy_template(source, target, assigns)
Code.format_file!(target)

unless String.contains?(file_name, ".heex") do
Code.format_file!(target)
end
end
end

0 comments on commit 6000052

Please sign in to comment.