feat: bundle css with backend
This commit is contained in:
parent
ad2c527e0e
commit
0b2b0a1358
3 changed files with 10 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -1,5 +1,5 @@
|
|||
.PHONY: all
|
||||
all: frontend backend
|
||||
all: frontend css backend
|
||||
mv api pronouns
|
||||
|
||||
.PHONY: migrate
|
||||
|
@ -7,13 +7,17 @@ migrate:
|
|||
go run -v ./scripts/migrate
|
||||
|
||||
.PHONY: backend
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue