Skip to content

Commit c333dd1

Browse files
authored
added pubspec file to specify version of melos (#1917)
* add pubspec file to specify version of melos * Revert "add pubspec file to specify version of melos" This reverts commit 53643bb. * another attempt to fix using melos * added dart_tool to gitignore * update how scope is specified via melos when building example app * Revert "update how scope is specified via melos when building example app" This reverts commit 48472cc. * reapply scoping melos fix
1 parent f373381 commit c333dd1

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pubspec.lock
22
.vscode
33
*.idea
44
*.DS_Store
5+
.dart_tool
56

67
# Melos
78
pubspec_overrides.yaml

melos.yaml

+17-21
Original file line numberDiff line numberDiff line change
@@ -20,57 +20,53 @@ scripts:
2020
test:unit:
2121
description: Run unit tests in a specific package.
2222
run: melos exec --concurrency=1 -- "flutter test"
23-
select-package:
24-
dir-exists:
23+
packageFilters:
24+
dirExists:
2525
- test
2626
test:unit:android:
2727
description: Runs java unit tests
2828
run: melos exec -c 1 -- "flutter build apk --debug && cd android && ./gradlew flutter_local_notifications:testDebug"
29-
select-package:
29+
packageFilters:
3030
scope: "*example*"
3131
test:integration:
3232
run: melos exec -c 1 -- "flutter test integration_test"
3333
description: Run integration tests
34-
select-package:
35-
dir-exists:
34+
packageFilters:
35+
dirExists:
3636
- integration_test
3737
scope: "*example*"
3838
build:example_android:
3939
run: |
40-
melos exec -c 1 -- \
40+
melos exec -c 1 --scope="*example*" -- \
4141
"flutter build apk --debug"
4242
description: Build a specific example app for Android.
43-
select-package:
44-
dir-exists:
43+
packageFilters:
44+
dirExists:
4545
- android
46-
scope: "*example*"
4746
build:example_ios:
4847
run: |
49-
melos exec -c 1 -- \
48+
melos exec -c 1 --scope="*example*" -- \
5049
"flutter build ios --no-codesign --debug"
5150
description: Build a specific example app for iOS.
52-
select-package:
53-
dir-exists:
51+
packageFilters:
52+
dirExists:
5453
- ios
55-
scope: "*example*"
5654
build:example_macos:
5755
run: |
58-
melos exec -c 1 -- \
56+
melos exec -c 1 --scope="*example*" -- \
5957
"flutter build macos"
6058
description: Build a specific example app for macOS.
61-
select-package:
62-
dir-exists:
59+
packageFilters:
60+
dirExists:
6361
- macos
64-
scope: "*example*"
6562
build:example_linux:
6663
run: |
67-
melos exec -c 1 -- \
64+
melos exec -c 1 --scope="*example*" -- \
6865
"flutter build linux"
6966
description: Build a specific example app for Linux.
70-
select-package:
71-
dir-exists:
67+
packageFilters:
68+
dirExists:
7269
- linux
73-
scope: "*example*"
7470

7571
clean:
7672
run: git clean -x -d -f -q

pubspec.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: flutter_local_notifications_workspace
2+
3+
environment:
4+
sdk: ">=2.18.0 <3.0.0"
5+
6+
dev_dependencies:
7+
melos: ^3.0.0

0 commit comments

Comments
 (0)