diff --git a/internal/server/integration_server_test.go b/internal/server/integration_server_test.go index 7ebbf6f..945495b 100644 --- a/internal/server/integration_server_test.go +++ b/internal/server/integration_server_test.go @@ -10,7 +10,7 @@ import ( ) func TestIntegrationWebServer(t *testing.T) { - config := Config{IsDevelopment: false, TemplateDir: "../../templates/", Port: "3000"} + config := Config{IsDevelopment: false, TemplateDir: "../../web/templates/", Port: "3000"} app := NewWebServer(&config) ts := httptest.NewServer(app.Router) defer ts.Close() diff --git a/package.json b/package.json index 813aff1..2fcbb09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "scripts": { - "watch:tailwind": "npx tailwindcss -i ./static/css/main.css -o ./static/css/styles.css --watch", + "watch:tailwind": "npx tailwindcss -i ./web/static/css/main.css -o ./web/static/css/styles.css --watch", "watch:go": "air", "dev": "concurrently \"npm run watch:tailwind\" \"npm run watch:go\"", "test": "go test ./...", diff --git a/tailwind.config.js b/tailwind.config.js index 67d2499..539931f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./templates/**/*.{html,js}"], + content: ["./web/templates/**/*.{html,js}"], theme: { extend: {}, }, diff --git a/static/css/main.css b/web/static/css/main.css similarity index 100% rename from static/css/main.css rename to web/static/css/main.css diff --git a/templates/htmx-demo.html b/web/templates/htmx-demo.html similarity index 100% rename from templates/htmx-demo.html rename to web/templates/htmx-demo.html diff --git a/templates/landing.html b/web/templates/landing.html similarity index 100% rename from templates/landing.html rename to web/templates/landing.html