Skip to content

Commit d7690f7

Browse files
committed
make sure output dir exists
1 parent 6747e4c commit d7690f7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ personal-*.tar
2727

2828
.expert
2929

30-
output/
30+
output/*

lib/mix/tasks/copy_static.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ defmodule Mix.Tasks.CopyStatic do
77
def run(_args) do
88
Mix.shell().info([:green, "Copying static files"])
99

10+
File.mkdir(@output_dir)
1011
File.cp_r!(@font_dir, Path.join([@output_dir, "assets", "fonts"]))
1112
File.cp_r!(@image_dir, Path.join([@output_dir, "assets", "images"]))
1213
end

0 commit comments

Comments
 (0)