refactor: changed file structure

This commit is contained in:
2025-03-05 20:18:28 +11:00
parent 5c1089e0ce
commit 1d9af44d0a
137 changed files with 4986 additions and 581 deletions

View File

@@ -5,16 +5,16 @@
BINARY_NAME=projectreshoot
build:
tailwindcss -i ./static/css/input.css -o ./static/css/output.css && \
tailwindcss -i ./pkg/embedfs/files/css/input.css -o ./pkg/embedfs/files/css/output.css && \
go mod tidy && \
templ generate && \
go generate && \
go build -ldflags="-w -s" -o ${BINARY_NAME}${SUFFIX}
go generate ./cmd/projectreshoot && \
go build -ldflags="-w -s" -o ./bin/${BINARY_NAME}${SUFFIX} ./cmd/projectreshoot
dev:
templ generate --watch &\
air &\
tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch
tailwindcss -i ./pkg/embedfs/files/css/input.css -o ./pkg/embedfs/files/css/output.css --watch
tester:
go mod tidy && \
@@ -23,15 +23,15 @@ tester:
test:
go mod tidy && \
templ generate && \
go generate && \
go test .
go test ./db
go test ./middleware
go generate ./cmd/projectreshoot && \
go test ./cmd/projectreshoot
go test ./pkg/db
go test ./internal/middleware
clean:
go clean
migrate:
go mod tidy && \
go generate && \
go build -ldflags="-w -s" -o prmigrate${SUFFIX} ./migrate
go generate ./cmd/migrate && \
go build -ldflags="-w -s" -o ./bin/migrate${SUFFIX} ./cmd/migrate