-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
253 lines (225 loc) · 5.31 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
name: garage
packages:
- packages/*
repository: https://github.com/KoheiKanagu/garage
command:
bootstrap:
runPubGetInParallel: false
hooks:
post: |
melos run pub:get
sdkPath: .fvm/versions/beta
scripts:
check:
description: |
Run code generation, format, and static analysis.
If any diff are found, it returns an error.
run: |
melos run build_runner:build &&
melos run generate &&
melos run update-si &&
melos run dart:fix:format &&
git diff --exit-code &&
melos run dart:analyze &&
melos run dart:custom_lint
dart:fix:format:
description: |
Run dart fix and format.
run: |
dart fix --apply tool
melos exec -- dart fix --apply lib
grind dart-format-all
dart:analyze:
description: |
Run dart analyze.
run: |
dart analyze --fatal-infos .
melos exec -- dart analyze --fatal-infos .
dart:custom_lint:
description: |
Run custom lint.
exec: |
# rootのtoolディレクトリもcustom_lintかけたいが、対象のディレクトリを指定できないためできない
dart run custom_lint
pub:get:
run: |
dart pub get
melos exec -- "flutter pub get"
flutter:test:
exec: |
flutter test \
--exclude-tags golden \
--flavor dev
packageFilters:
flutter: true
dirExists: test
flutter:golden:test:
description: |
Run golden tests.
exec: |
flutter test \
--tags golden \
--flavor dev
packageFilters:
flutter: true
dirExists: test
flutter:golden:update:
description: |
Update golden tests.
exec: |
flutter test \
--update-goldens \
--tags golden \
--flavor dev
packageFilters:
flutter: true
dirExists: test
build_runner:build:
run: |
dart run build_runner build --delete-conflicting-outputs
exec:
orderDependents: true
packageFilters:
flutter: true
dependsOn: build_runner
build_runner:watch:
exec: |
dart run build_runner watch --delete-conflicting-outputs
packageFilters:
flutter: true
dependsOn: build_runner
pod:install:
run: |
pod install --project-directory=ios
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
pod:update:
run: |
pod update --project-directory=ios
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
build:apk:dev:
run: |
flutter build apk \
--release \
--flavor dev \
--target-platform android-arm64 \
--obfuscate \
--split-debug-info build/app/outputs &&
MELOS_ROOT_PATH/tool/firebase/crashlytics_symbols_upload.sh dev
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: android
build:appbundle:prod:upload:
run: |
flutter build appbundle \
--release \
--flavor prod \
--obfuscate \
--split-debug-info build/app/outputs &&
MELOS_ROOT_PATH/tool/firebase/crashlytics_symbols_upload.sh prod &&
(cd MELOS_ROOT_PATH && ./tool/store/upload_to_play_store.sh MELOS_PACKAGE_NAME)
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: android
build:ios:config-only:
run: |
flutter build ios \
--config-only \
--flavor dev
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
build:ios:no-codesign:dev:
run: |
flutter build ios \
--release \
--no-codesign \
--flavor dev \
--obfuscate \
--split-debug-info build/app/outputs
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
build:ios:no-codesign:prod:
run: |
flutter build ios \
--release \
--no-codesign \
--flavor prod \
--obfuscate \
--split-debug-info build/app/outputs
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
build:ipa:dev:
run: |
flutter build ipa \
--release \
--flavor dev \
--export-options-plist configs/AdHocExportOptions.plist \
--obfuscate \
--split-debug-info build/app/outputs
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
build:ipa:prod:upload:
run: |
flutter build ipa \
--release \
--flavor prod \
--export-options-plist configs/AppStoreExportOptions.plist \
--obfuscate \
--split-debug-info build/app/outputs
exec:
concurrency: 1
packageFilters:
flutter: true
dirExists: ios
pigeon:
exec: |
dart run pigeon \
--input pigeons/message.dart
packageFilters:
dependsOn: pigeon
slang:
exec: |
dart run slang
packageFilters:
dependsOn: slang
clean:
exec: |
flutter clean
packageFilters:
flutter: true
generate:
description: |
Generate files.
run: |
melos run pigeon --no-select &&
grind update-coverage-test &&
grind update-core-export &&
grind dump-firestore-indexes
update-si:
description: |
Update si.
run: |
grind update-si