Files

77 lines
1.7 KiB
Makefile

.PHONY: help install dev build start clean gallery test
# Default target
help:
@echo "Hanzo Templates Monorepo - Available Commands"
@echo ""
@echo "Setup:"
@echo " make install Install all dependencies (pnpm)"
@echo " make clean Remove all node_modules"
@echo ""
@echo "Development:"
@echo " make dev Start gallery dev server"
@echo " make build Build gallery for production"
@echo " make start Start gallery production server"
@echo ""
@echo "Gallery:"
@echo " make gallery Alias for 'make dev'"
@echo " make gallery-build Build gallery app"
@echo ""
@echo "Tools:"
@echo " make capture Capture screenshots of all templates"
@echo " make test Run tests"
@echo ""
# Installation
install:
@echo "๐Ÿ“ฆ Installing dependencies with pnpm..."
pnpm install
@echo "โœ… Installation complete"
# Development
dev:
@echo "๐Ÿš€ Starting gallery dev server..."
pnpm dev
gallery:
@$(MAKE) dev
# Build
build:
@echo "๐Ÿ—๏ธ Building gallery for production..."
pnpm build
# Start production server
start:
@echo "โ–ถ๏ธ Starting gallery production server..."
pnpm start
# Clean
clean:
@echo "๐Ÿงน Removing all node_modules..."
pnpm clean
@echo "โœ… Cleanup complete"
# Gallery specific
gallery-build:
@echo "๐Ÿ—๏ธ Building gallery app..."
pnpm gallery:build
# Screenshot capture
capture:
@echo "๐Ÿ“ธ Capturing template screenshots..."
pnpm capture
capture-quick:
@echo "๐Ÿ“ธ Quick screenshot capture..."
pnpm capture:quick
# Test
test:
@echo "๐Ÿงช Running tests..."
@if [ -f "test-gallery-monorepo.js" ]; then \
node test-gallery-monorepo.js; \
else \
echo "No tests configured"; \
fi