feat(frontend): incomplete port to next.js

This commit is contained in:
Sam 2022-08-16 00:01:54 +02:00
parent b9c30379ee
commit eec01dc070
50 changed files with 2874 additions and 3163 deletions

View file

@ -1,23 +1,7 @@
.PHONY: all
all: frontend css backend
mv api pronouns
.PHONY: migrate
migrate:
go run -v ./scripts/migrate
.PHONY: backend
backend: css
CGO_ENABLED=0 go build -v -o api -ldflags="-buildid= -X codeberg.org/u1f320/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD`" ./backend
.PHONY: frontend
frontend:
yarn build
.PHONY: css
css:
yarn tailwindcss -m -o frontend/style.css
.PHONY: dev
dev:
yarn dev
backend:
CGO_ENABLED=0 go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/u1f320/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD`" ./backend