runable
This commit is contained in:
30
scripts/setup_riverpod.sh
Executable file
30
scripts/setup_riverpod.sh
Executable 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"
|
||||
Reference in New Issue
Block a user