diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3f5a6f..f56f915 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,9 @@ jobs: with: fetch-depth: 0 + - name: Install swaggo + run: go install github.com/a-h/templ/cmd/templ@latest + - name: Setup node uses: actions/setup-node@v4 with: diff --git a/Makefile b/Makefile index d43e993..944c075 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: dev-server dev-tailwind dev-templ dev build-server build-tailwind build-templ build launch deploy +.PHONY: dev-server dev-tailwind dev-templ dev build-server build-tailwind build-templ build launch deploy clean #----------------------------------------------------- # DEV @@ -41,7 +41,7 @@ dev-tailwind: # BUILD #----------------------------------------------------- -build: build-tailwind build-server build-templ +build: build-templ build-tailwind build-server build-server: @go build -o bin/server ./server/main.go @@ -55,4 +55,8 @@ build-tailwind: lint: golangci-lint run --timeout 5m0s -v +clean: + find . -type f -name '*_templ.go' -exec rm -f {} ls **/*_templ.go + + .DEFAULT_GOAL := dev \ No newline at end of file