Skip to content

Commit

Permalink
refactor: use web folder as recommended
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Brereton authored and Tom Brereton committed Jan 10, 2024
1 parent 036d078 commit 69292ca
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/server/integration_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 ./...",
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./templates/**/*.{html,js}"],
content: ["./web/templates/**/*.{html,js}"],
theme: {
extend: {},
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 69292ca

Please sign in to comment.