Skip to content

Commit 81568cd

Browse files
committed
More logging
1 parent 85b1311 commit 81568cd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/components_guide_web/lib/mix/tasks/template_assets.ex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
defmodule Mix.Tasks.TemplateAssets do
22
use Mix.Task
33

4-
alias ComponentsGuideWeb.Endpoint
4+
# alias ComponentsGuideWeb.Endpoint
55

66
@shortdoc "Move images from templates to static assets"
77
def run(_) do
88
Mix.Task.run("app.start")
99

1010
IO.puts("Running mix template_assets in #{project_dir()}")
1111
IO.puts("Template path: #{templates_path()}")
12+
13+
IO.inspect(File.ls(Path.join(templates_path(), "react_typescript")))
1214

13-
image_paths = Path.wildcard(Path.join(templates_path(), "/**/*.{png,jpg,jpeg,gif}"))
14-
IO.puts("Found images: #{image_paths}")
15+
image_paths = Path.wildcard(Path.join(templates_path(), "**/*.{png,jpg,jpeg,gif}"))
16+
IO.puts("Found images:")
17+
IO.inspect(image_paths)
1518

1619
for image_path <- image_paths do
1720
process_image(image_path)

0 commit comments

Comments
 (0)