#!/bin/bash # Development Update Script for Ice Watch Application # Quick script for updating during development set -e # Colors for output GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color log() { echo -e "${GREEN}[$(date +'%Y-%m-%d %H:%M:%S')] $1${NC}" } warn() { echo -e "${YELLOW}[$(date +'%Y-%m-%d %H:%M:%S')] $1${NC}" } log "Starting development update..." # Pull latest changes log "Pulling latest changes from git..." git pull origin main # Install dependencies log "Installing/updating dependencies..." npm install # Build the application log "Building application..." npm run build # Run tests log "Running tests..." npm test log "✅ Development update completed successfully!" log "You can now run 'npm start' or 'npm run dev:full' to start the application"