chore(dev,makefile): improve clean command

This commit is contained in:
Guz
2024-10-23 18:55:28 -03:00
parent 0ed5f27f92
commit 013ed1002a

View File

@@ -63,6 +63,14 @@ run: build
./.dist/app
clean:
if [[ -d "dist" ]]; then rm -r ./dist; fi
# Remove templ generated files
find -type f -iname '*_templ.go' -delete \
-o -type f -iname '*_templ.txt' -delete
# Remove UnoCSS generated file
rm ./assets/css/uno.css
# Remove generated directories
if [[ -d ".dist" ]]; then rm -r ./.dist; fi
if [[ -d "tmp" ]]; then rm -r ./tmp; fi
if [[ -d "bin" ]]; then rm -r ./bin; fi