Rich text editor for Flutter
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Run Flutter analyze
|
|
|
|
echo "Running 'flutter analyze'..."
|
|
|
|
flutter analyze
|
|
|
|
|
|
|
|
# Run Flutter test
|
|
|
|
echo "Running 'flutter test'..."
|
|
|
|
flutter test
|
|
|
|
|
|
|
|
# Check if package is ready for publishing
|
|
|
|
echo "Running 'flutter pub publish --dry-run'..."
|
|
|
|
flutter pub publish --dry-run
|
|
|
|
|
|
|
|
# Apply Dart fixes
|
|
|
|
echo "Running 'dart fix --apply'..."
|
|
|
|
dart fix --apply
|
|
|
|
|
|
|
|
# Format Dart code
|
|
|
|
echo "Running 'dart format .'"
|
|
|
|
dart format .
|
|
|
|
|
|
|
|
# Check dart code formatting
|
|
|
|
echo "Running 'dart format --set-exit-if-changed .'"
|
|
|
|
dart format --set-exit-if-changed .
|
|
|
|
|
|
|
|
# Check flutter web example
|
|
|
|
echo "Running flutter build web --release --dart-define=CI=true."
|
|
|
|
(cd example && flutter build web --release --dart-define=CI=true)
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "Script completed."
|