Migrated to the new go-web-dev-kit setup.

This commit is contained in:
Zed A. Shaw 2025-09-13 15:08:19 -04:00
parent 8d70b57299
commit 71ee505717
20 changed files with 193 additions and 810 deletions

View file

@ -4,9 +4,6 @@ ifeq '$(OS)' 'Windows_NT'
GO_IS_STUPID_EXE=.exe
endif
all: tailwind site
echo "yay!"
build: build_bot
go build .
@ -15,27 +12,26 @@ build_bot:
site:
go tool ssgod
go tool ssgod -config ssgod_copy.toml
site_watch:
go tool ssgod watch
test: site
go test zedshaw.games/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE)
go test MY/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE)
./runtests$(GO_IS_STUPID_EXE)
test_only:
go test zedshaw.games/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE)
go test MY/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE)
./runtests$(GO_IS_STUPID_EXE) -test.run TestGamePage
migrate_up:
go tool goose sqlite3 db.sqlite3 -dir migrations up
goose sqlite3 db.sqlite3 -dir migrations up
migrate_down:
go tool goose sqlite3 db.sqlite3 -dir migrations down
goose sqlite3 db.sqlite3 -dir migrations down
docs:
go tool pkgsite --open
pkgsite --open
tailwind:
tailwindcss --input ./static/input_style.css --output ./static/style.css
@ -48,8 +44,8 @@ tailwind_install:
chmod oug+x tailwindcss-linux-x64
sudo mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss
dev: tailwind site
go tool air -build.stop_on_error "true"
dev:
go tool ozai
coverage:
go build -cover -o webapp