Skip to content

chore: migrate to melos 3 #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pubspec_overrides.yaml
**/build/
generated_plugin_registrant.dart
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/pubspec.lock

# Fastlane related
android/fastlane/report.xml
Expand Down
50 changes: 22 additions & 28 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ command:

scripts:
upgrade:
run: melos exec -- flutter pub upgrade
exec: flutter pub upgrade
description: flutter pub upgrade

analyze:
Expand All @@ -29,51 +29,41 @@ scripts:
description: dart format --set-exit-if-changed .

build:
run: |
melos exec -- flutter build apk
select-package:
exec: flutter build apk
packageFilters:
scope: example
description: flutter build apk

gen:build_runner:
run: |
melos exec -- dart pub run build_runner build --delete-conflicting-outputs
select-package:
exec: dart pub run build_runner build --delete-conflicting-outputs
packageFilters:
ignore:
- example
- example_resources
depends-on: build_runner
dependsOn: build_runner
description: dart pub run build_runner build --delete-conflicting-outputs

gen:example:command:
run: |
melos exec \
-- dart ../../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml
select-package:
exec: dart ../../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml
packageFilters:
scope: example
description: dart ../../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml

gen:example:build_runner:
run: |
melos exec \
-- flutter pub run build_runner build --delete-conflicting-outputs
select-package:
exec: flutter pub run build_runner build --delete-conflicting-outputs
packageFilters:
scope: example
description: flutter pub run build_runner build --delete-conflicting-outputs

gen:example:res:command:
run: |
melos exec \
-- dart ../../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml
select-package:
exec: dart ../../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml
packageFilters:
scope: example_resources
description: dart ../../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml

gen:example:res:build_runner:
run: |
melos exec \
-- flutter pub run build_runner build --delete-conflicting-outputs
select-package:
exec: flutter pub run build_runner build --delete-conflicting-outputs
packageFilters:
scope: example_resources
description: flutter pub run build_runner build --delete-conflicting-outputs

Expand All @@ -82,10 +72,12 @@ scripts:
description: dart test

test:dart:
run: melos exec --fail-fast dart test
select-package:
run: dart test
exec:
failFast: true
packageFilters:
flutter: false
depends-on: test
dependsOn: test
description: dart test

coverage:
Expand All @@ -94,5 +86,7 @@ scripts:
description: bash ./scripts/coverage.sh packages/core

postclean:
run: melos exec -c 6 -- flutter clean
run: flutter clean
exec:
concurrency: 6
description: flutter clean
Loading