mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 04:35:40 +00:00
34 lines
545 B
Makefile
34 lines
545 B
Makefile
# Build website
|
|
web:
|
|
cd site; bun run build
|
|
|
|
# Requirements
|
|
requirements:
|
|
cd site; bun install
|
|
go mod tidy
|
|
|
|
# Copy site assets
|
|
assets: web
|
|
rm -rf internal/assets/dist
|
|
mkdir -p internal/assets/dist
|
|
cp -r site/dist/* internal/assets/dist
|
|
|
|
# Run development binary
|
|
run: assets
|
|
go run main.go
|
|
|
|
# Run development binary without compiling the frontend
|
|
run-skip-web:
|
|
go run main.go
|
|
|
|
# Test
|
|
test:
|
|
go test ./...
|
|
|
|
# Build
|
|
build: assets
|
|
go build -o tinyauth
|
|
|
|
# Build the binary without compiling the frontend
|
|
build-skip-web:
|
|
go build -o tinyauth
|