Skip to content

Commit

Permalink
build: melos upgrade to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
daadu committed Sep 4, 2023
1 parent b7b61fc commit 9222ba8
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 31 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ unlinked_spec.ds
**/pubspec.lock

# Coverage
coverage/
coverage/

# Melos related
!/pubspec.lock
pubspec_overrides.yaml

58 changes: 29 additions & 29 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ scripts:
melos exec -c 6 --fail-fast -- \
"flutter build ios --no-codesign --no-pub"
description: Build a specific example app for iOS.
select-package:
dir-exists:
packageFilters:
dirExists:
- ios
scope: "*example*"

Expand All @@ -60,8 +60,8 @@ scripts:
melos bootstrap does not generate all files generated by a build that runs
`pub get`, and `flutter drive` does not either, so it is still necessary to
build sometimes without the `--no-pub` switch. Careful: `melos bootstrap` after.
select-package:
dir-exists:
packageFilters:
dirExists:
- ios
scope: "*example*"

Expand All @@ -70,8 +70,8 @@ scripts:
melos exec -c 6 --fail-fast -- \
"flutter build apk --no-pub"
description: Build a specific example app for Android.
select-package:
dir-exists:
packageFilters:
dirExists:
- android
scope: "*example*"

Expand All @@ -80,8 +80,8 @@ scripts:
melos exec -c 6 --fail-fast -- \
"flutter build apk"
description: Build a specific example app for Android.
select-package:
dir-exists:
packageFilters:
dirExists:
- android
scope: "*example*"

Expand All @@ -93,8 +93,8 @@ scripts:
Build a specific example app for macOS.
- Requires `flutter channel stable`.
- Requires `flutter config --enable-macos-desktop` set.
select-package:
dir-exists:
packageFilters:
dirExists:
- macos
scope: "*example*"

Expand All @@ -106,8 +106,8 @@ scripts:
Build a specific example app for web.
- Requires `flutter channel stable`.
- Requires `flutter config --enable-linux-desktop` set.
select-package:
dir-exists:
packageFilters:
dirExists:
- linux
scope: "*example*"

Expand All @@ -119,8 +119,8 @@ scripts:
Build a specific example app for windows.
- Requires `flutter channel stable`.
- Requires `flutter config --enable-windows-desktop` set.
select-package:
dir-exists:
packageFilters:
dirExists:
- windows
scope: "*example*"

Expand All @@ -131,8 +131,8 @@ scripts:
description: |
Build a specific example app for web.
- Requires `flutter channel stable`.
select-package:
dir-exists:
packageFilters:
dirExists:
- web
scope: "*example*"

Expand All @@ -149,8 +149,8 @@ scripts:
melos exec -c 6 --fail-fast -- \
"flutter test --no-pub"
description: Run `flutter test` for a specific package.
select-package:
dir-exists:
packageFilters:
dirExists:
- test
ignore:
- "*web*"
Expand All @@ -161,8 +161,8 @@ scripts:
melos exec -c 1 --fail-fast -- \
"flutter test --no-pub --platform=chrome"
description: Run `flutter test --platform=chrome` for a specific '*web' package.
select-package:
dir-exists:
packageFilters:
dirExists:
- test
scope: "*web*"

Expand All @@ -173,8 +173,8 @@ scripts:
description: |
Run all Android or iOS test driver e2e tests in a specific example app.
- Requires an Android emulator or iOS simulator.
select-package:
dir-exists:
packageFilters:
dirExists:
- test_driver
scope: "*example*"

Expand All @@ -186,8 +186,8 @@ scripts:
Run all Web test driver e2e tests in a specific example app.
- Requires `flutter channel stable`.
- Requires chromedriver running on port 4444.
select-package:
dir-exists:
packageFilters:
dirExists:
- web
- test_driver
scope: "*example*"
Expand All @@ -200,8 +200,8 @@ scripts:
Run all Linux test driver e2e tests in a specific example app.
- Requires `flutter channel stable`.
- Requires `flutter config --enable-linux-desktop` set.
select-package:
dir-exists:
packageFilters:
dirExists:
- linux
- test_driver
scope: "*example*"
Expand All @@ -214,8 +214,8 @@ scripts:
Run all MacOS test driver e2e tests in a specific example app.
- Requires `flutter channel stable`.
- Requires `flutter config --enable-macos-desktop` set.
select-package:
dir-exists:
packageFilters:
dirExists:
- macos
- test_driver
scope: "*example*"
Expand Down Expand Up @@ -247,4 +247,4 @@ dev_dependencies:

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <3.0.0"
2 changes: 1 addition & 1 deletion packages/wifi_iot/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
cupertino_icons: ^1.0.6

dev_dependencies:
flutter_test:
Expand Down
Loading

0 comments on commit 9222ba8

Please sign in to comment.