2022-06-17 00:00:52 +02:00
|
|
|
.PHONY: all
|
2022-06-17 15:19:00 +02:00
|
|
|
all: frontend css backend
|
2022-06-17 00:00:52 +02:00
|
|
|
mv api pronouns
|
|
|
|
|
2022-05-14 16:46:03 +02:00
|
|
|
.PHONY: migrate
|
2022-05-02 17:19:37 +02:00
|
|
|
migrate:
|
2022-05-12 16:41:32 +02:00
|
|
|
go run -v ./scripts/migrate
|
2022-05-02 17:19:37 +02:00
|
|
|
|
2022-05-14 16:46:03 +02:00
|
|
|
.PHONY: backend
|
2022-06-17 15:19:00 +02:00
|
|
|
backend: css
|
2022-06-17 00:00:52 +02:00
|
|
|
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
|
2022-05-14 16:46:03 +02:00
|
|
|
|
|
|
|
.PHONY: frontend
|
|
|
|
frontend:
|
|
|
|
yarn build
|
|
|
|
|
2022-06-17 15:19:00 +02:00
|
|
|
.PHONY: css
|
|
|
|
css:
|
|
|
|
yarn tailwindcss -m -o frontend/style.css
|
|
|
|
|
2022-05-14 16:46:03 +02:00
|
|
|
.PHONY: dev
|
|
|
|
dev:
|
|
|
|
yarn dev
|