Skip to content

Commit

Permalink
chore: migrate to melos 3 (#380)
Browse files Browse the repository at this point in the history
Co-authored-by: Daichi Furiya <dadadada.chop@gmail.com>
  • Loading branch information
blaugold and wasabeef committed Apr 17, 2023
1 parent 9270480 commit f339849
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 28 deletions.
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

0 comments on commit f339849

Please sign in to comment.