forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
127 lines (113 loc) · 3.51 KB
/
melos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: FlutterFire
packages:
- packages/**
scripts:
analyze:
run: |
melos exec -c 5 --fail-fast -- \
dart analyze .
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:
run: dart pub global run flutter_plugin_tools format
description: |
Build a specific example app for Android.
- Requires `flutter_plugin_tools` (`pub global activate flutter_plugin_tools`).
- Requires `clang-format` (can be installed via Brew on macOS).
build:example_android:
run: |
melos exec -c 1 --fail-fast -- \
"flutter build apk --no-pub"
description: Build a specific example app for Android.
select-package:
dir-exists:
- android
scope: '*example*'
build:example_ios:
run: |
melos exec -c 1 --fail-fast -- \
"flutter build ios --no-codesign --no-pub"
description: Build a specific example app for iOS.
select-package:
dir-exists:
- ios
scope: '*example*'
build:example_macos:
run: |
melos exec -c 1 --fail-fast -- \
"flutter build macos --no-pub"
description: |
Build a specific example app for macOS.
- Requires `flutter channel master`.
- Requires `flutter config --enable-macos-desktop` set.
select-package:
dir-exists:
- macos
scope: '*example*'
test:
run: |
melos exec -c 1 --fail-fast -- \
"flutter test --no-pub"
description: Run `flutter test` for a specific package.
select-package:
dir-exists:
- test
ignore:
- '*web*'
- '*example*'
test:web:
run: |
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:
- test
scope: '*web*'
test:mobile_e2e:
run: |
melos exec -c 1 --fail-fast -- \
"flutter drive --no-pub --target=./test_driver/MELOS_PARENT_PACKAGE_NAME_e2e.dart"
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:
- test_driver
scope: '*example*'
test:web_e2e:
run: |
melos exec -c 1 --fail-fast -- \
"flutter drive -d web --no-pub --target=./test_driver/MELOS_PARENT_PACKAGE_NAME_e2e.dart"
description: |
Run all Web test driver e2e tests in a specific example app.
- Requires `flutter channel master` (or beta).
- Requires `flutter config --enable-web` set.
- Requires chromedriver running on port 4444.
select-package:
dir-exists:
- web
- test_driver
scope: '*example*'
test:macos_e2e:
run: |
melos exec -c 1 --fail-fast -- \
"flutter drive -d macos --no-pub --target=./test_driver/MELOS_PARENT_PACKAGE_NAME_e2e.dart"
description: |
Run all MacOS test driver e2e tests in a specific example app.
- Requires `flutter channel master`.
- Requires `flutter config --enable-macos-desktop` set.
select-package:
dir-exists:
- macos
- test_driver
scope: '*example*'
# Additional cleanup lifecycle script, executed when `melos clean` is ran.
postclean: >
melos exec -c 5 -- "flutter clean"
dev_dependencies:
pedantic: 1.8.0
environment:
sdk: ">=2.1.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"