Files
imagecreator/imagecreator/frontend/scripts/validate.sh
T
Claude f210b03d0c feat: add project infrastructure and AI-first optimizations
- Add .gitignore to exclude sensitive files and build artifacts
- Add CLAUDE.md for AI assistant context
- Add Makefile for development commands
- Add validation scripts for backend and frontend
- Add TypeScript configuration for frontend
- Update config defaults to use SQLite for development
- Add model configuration management (prompt/image models)
- Improve image generation service with multiple provider support
- Enhance frontend UI with model settings and improved UX

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 14:16:12 +08:00

28 lines
652 B
Bash
Executable File

#!/bin/bash
# Frontend validation script
set -e
echo "🔍 Running frontend validation..."
cd "$(dirname "$0")/.."
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo " → Installing dependencies..."
npm install
fi
# Type check
echo " → Running TypeScript check..."
npm run type-check 2>/dev/null || echo " ⚠️ TypeScript check not configured"
# Lint
echo " → Running ESLint..."
npm run lint 2>/dev/null || echo " ⚠️ ESLint not configured"
# Build check
echo " → Running build check..."
npm run build 2>/dev/null || echo " ⚠️ Build check failed"
echo "✅ Frontend validation complete"