refactor: make sure dist directory exists during development

This commit is contained in:
Stavros
2025-04-10 22:14:26 +03:00
parent 61dfc91110
commit df34b13f25
2 changed files with 1 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ root = "/tinyauth"
tmp_dir = "tmp"
[build]
pre_cmd = ["mkdir -p internal/assets/dist", "echo 'backend running' > internal/assets/dist/index.html"]
cmd = "go build -o ./tmp/tinyauth ."
bin = "tmp/tinyauth"
include_ext = ["go"]