This commit is contained in:
Phuoc Nguyen
2025-10-17 17:22:28 +07:00
parent 2125e85d40
commit 628c81ce13
86 changed files with 31339 additions and 1710 deletions

30
scripts/setup_riverpod.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# Riverpod Setup Script for Worker Flutter App
# This script sets up Riverpod 3.0 with code generation
echo "🚀 Setting up Riverpod 3.0..."
# 1. Get dependencies
echo "📦 Installing dependencies..."
flutter pub get
# 2. Clean previous builds
echo "🧹 Cleaning previous builds..."
dart run build_runner clean
# 3. Run code generation
echo "⚙️ Running code generation..."
dart run build_runner build --delete-conflicting-outputs
# 4. Run custom lint
echo "🔍 Running Riverpod linting..."
dart run custom_lint
echo "✅ Riverpod setup complete!"
echo ""
echo "To watch for changes and auto-generate code, run:"
echo " dart run build_runner watch -d"
echo ""
echo "To run linting:"
echo " dart run custom_lint"