mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
Fix settings security tab navigation
This commit is contained in:
commit
f46ff1792b
333 changed files with 114894 additions and 0 deletions
63
Makefile
Normal file
63
Makefile
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
# Pulse Makefile for development
|
||||
|
||||
.PHONY: build run dev frontend backend all clean dev-hot lint lint-backend lint-frontend format format-backend format-frontend
|
||||
|
||||
# Build everything
|
||||
all: frontend backend
|
||||
|
||||
# Build frontend only
|
||||
frontend:
|
||||
cd frontend-modern && npm run build
|
||||
@echo "================================================"
|
||||
@echo "Copying frontend to internal/api/ for Go embed"
|
||||
@echo "This is REQUIRED - Go cannot embed external paths"
|
||||
@echo "================================================"
|
||||
rm -rf internal/api/frontend-modern
|
||||
mkdir -p internal/api/frontend-modern
|
||||
cp -r frontend-modern/dist internal/api/frontend-modern/
|
||||
@echo "✓ Frontend copied for embedding"
|
||||
|
||||
# Build backend only (includes embedded frontend)
|
||||
backend:
|
||||
go build -o pulse ./cmd/pulse
|
||||
|
||||
# Build both and run
|
||||
build: frontend backend
|
||||
|
||||
# Run the built binary
|
||||
run: build
|
||||
./pulse
|
||||
|
||||
# Development - rebuild everything and restart service
|
||||
dev: frontend backend
|
||||
sudo systemctl restart pulse-backend
|
||||
|
||||
dev-hot:
|
||||
./scripts/dev-hot.sh
|
||||
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
rm -f pulse
|
||||
rm -rf frontend-modern/dist
|
||||
|
||||
# Quick rebuild and restart for development
|
||||
restart: frontend backend
|
||||
sudo systemctl restart pulse-backend
|
||||
|
||||
# Run linters for both backend and frontend
|
||||
lint: lint-backend lint-frontend
|
||||
|
||||
lint-backend:
|
||||
golangci-lint run ./...
|
||||
|
||||
lint-frontend:
|
||||
cd frontend-modern && npm run lint
|
||||
|
||||
# Apply formatters
|
||||
format: format-backend format-frontend
|
||||
|
||||
format-backend:
|
||||
gofmt -w cmd internal pkg
|
||||
|
||||
format-frontend:
|
||||
cd frontend-modern && npm run format
|
||||
Loading…
Add table
Add a link
Reference in a new issue