-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathmelos.yaml
205 lines (155 loc) · 9.45 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
name: basecleanflutter
packages:
- ./**
command:
bootstrap:
runPubGetInParallel: false
scripts:
# build runner build
build_all:
run: dart pub global run melos exec --depends-on="build_runner" "flutter packages pub run build_runner build"
description: build_runner build all modules.
build_data:
run: dart pub global run melos exec --fail-fast --scope="*data*" --depends-on="build_runner" "flutter packages pub run build_runner build"
description: build_runner build data module.
build_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" --depends-on="build_runner" "flutter packages pub run build_runner build"
description: build_runner build domain module.
build_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" --depends-on="build_runner" "flutter packages pub run build_runner build"
description: build_runner build app module.
build_shared:
run: dart pub global run melos exec --fail-fast --scope="*shared*" --depends-on="build_runner" "flutter packages pub run build_runner build"
description: build_runner build shared module.
# build runner watch
watch_all:
run: dart pub global run melos exec --depends-on="build_runner" "flutter packages pub run build_runner watch"
description: build_runner watch all modules.
watch_data:
run: dart pub global run melos exec --fail-fast --scope="*data*" --depends-on="build_runner" "flutter packages pub run build_runner watch"
description: build_runner watch data module.
watch_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" --depends-on="build_runner" "flutter packages pub run build_runner watch"
description: build_runner watch domain module.
watch_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" --depends-on="build_runner" "flutter packages pub run build_runner watch"
description: build_runner watch app module.
watch_shared:
run: dart pub global run melos exec --fail-fast --scope="*shared*" --depends-on="build_runner" "flutter packages pub run build_runner watch"
description: build_runner watch shared module.
# build runner build --delete-conflicting-outputs
force_build_all:
run: dart pub global run melos exec --depends-on="build_runner" "flutter packages pub run build_runner build --delete-conflicting-outputs"
description: build_runner build all modules.
force_build_data:
run: dart pub global run melos exec --fail-fast --scope="*data*" --depends-on="build_runner" "flutter packages pub run build_runner build --delete-conflicting-outputs"
description: build_runner build data module.
force_build_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" --depends-on="build_runner" "flutter packages pub run build_runner build --delete-conflicting-outputs"
description: build_runner build domain module.
force_build_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" --depends-on="build_runner" "flutter packages pub run build_runner build --delete-conflicting-outputs"
description: build_runner build app module.
force_build_shared:
run: dart pub global run melos exec --fail-fast --scope="*shared*" --depends-on="build_runner" "flutter packages pub run build_runner build --delete-conflicting-outputs"
description: build_runner build shared module.
# build runner watch --delete-conflicting-outputs
force_watch_all:
run: dart pub global run melos exec --depends-on="build_runner" "flutter packages pub run build_runner watch --delete-conflicting-outputs"
description: build_runner watch all modules.
force_watch_data:
run: dart pub global run melos exec --fail-fast --scope="*data*" --depends-on="build_runner" "flutter packages pub run build_runner watch --delete-conflicting-outputs"
description: build_runner watch data module.
force_watch_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" --depends-on="build_runner" "flutter packages pub run build_runner watch --delete-conflicting-outputs"
description: build_runner watch domain module.
force_watch_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" --depends-on="build_runner" "flutter packages pub run build_runner watch --delete-conflicting-outputs"
description: build_runner watch app module.
force_watch_shared:
run: dart pub global run melos exec --fail-fast --scope="*shared*" --depends-on="build_runner" "flutter packages pub run build_runner watch --delete-conflicting-outputs"
description: build_runner watch shared module.
l10n:
run: dart pub global run melos exec --fail-fast --scope="*resources*" --flutter -- flutter pub run intl_utils:generate
description: Generates l10n for all app packages.
test:
run: dart pub global run melos exec --fail-fast --dir-exists="test" "flutter test"
description: Run all tests.
pub_upgrade:
run: dart pub global run melos exec --fail-fast "flutter pub upgrade"
description: Run pub upgrade on all module.
test_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" "flutter test"
description: Run test app module.
test_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" "flutter test"
description: Run test domain module.
test_data:
run: dart pub global run melos exec --fail-fast --scope="*data*" "flutter test"
description: Run test data module.
test_shared:
run: dart pub global run melos exec --fail-fast --scope="*shared*" "flutter test"
description: Run test shared module.
format:
run: melos exec --fail-fast --flutter -- "find . -name "*.dart" ! -name "*.g.dart" ! -name "*.freezed.dart" ! -name "*.gr.dart" ! -name "*.config.dart" ! -name "*.mocks.dart" ! -name "*.mapper.dart" ! -path '*/generated/*' ! -path '*/.dart_tool/*' | tr '\n' ' ' | xargs dart format --set-exit-if-changed -l 100"
description: Run format.
metrics:
run: dart pub global run melos exec --flutter -- "flutter pub run dart_code_metrics:metrics analyze lib"
description: Run metrics.
metrics_app:
run: dart pub global run melos exec --scope="*app*" --flutter -- "flutter pub run dart_code_metrics:metrics analyze lib"
description: Run metrics app.
metrics_data:
run: dart pub global run melos exec --scope="*data*" --flutter -- "flutter pub run dart_code_metrics:metrics analyze lib"
description: Run metrics data.
metrics_domain:
run: dart pub global run melos exec --scope="*domain*" --flutter -- "flutter pub run dart_code_metrics:metrics analyze lib"
description: Run metrics domain.
metrics_shared:
run: dart pub global run melos exec --scope="*shared*" --flutter -- "flutter pub run dart_code_metrics:metrics analyze lib"
description: Run metrics shared.
analyze:
run: dart pub global run melos exec --flutter -- "flutter analyze --no-pub --suppress-analytics"
description: Run analyze.
analyze_app:
run: dart pub global run melos exec --scope="*app*" --flutter -- "flutter analyze --no-pub --suppress-analytics"
description: Run analyze app.
analyze_data:
run: dart pub global run melos exec --scope="*data*" --flutter -- "flutter analyze --no-pub --suppress-analytics"
description: Run analyze data.
analyze_domain:
run: dart pub global run melos exec --scope="*domain*" --flutter -- "flutter analyze --no-pub --suppress-analytics"
description: Run analyze domain.
analyze_shared:
run: dart pub global run melos exec --scope="*shared*" --flutter -- "flutter analyze --no-pub --suppress-analytics"
description: Run analyze shared.
lint:
run: dart pub global run melos run analyze && dart pub global run melos run metrics
description: Run metrics and analyze.
format_lint:
run: dart pub global run melos run format && dart pub global run melos run lint
description: Run format & analyze.
test_coverage:
run: dart pub global run melos exec --fail-fast --dir-exists="test" "flutter test --coverage && lcov --remove coverage/lcov.info '**/*.freezed.dart' '**/*.g.dart' '**/*.graphql.dart' '**/*.part.dart' '**/*.config.dart' '**/*_event.dart' '**/*_state.dart' '**/generated/*' '**/routes/*' '**/l10n/*' '**/config/*' '**/di/*' -o coverage/lcov.info && genhtml coverage/lcov.info --output=coverage && open coverage/index.html"
description: Run test coverage.
check_unused_files:
run: dart pub global run melos exec "flutter pub run dart_code_metrics:metrics check-unused-files lib"
description: Run check unused files.
pub_get_data:
run: dart pub global run melos exec --fail-fast --scope="*data*" "flutter pub get"
description: pub get data module.
pub_get_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" "flutter pub get"
description: pub get domain module.
pub_get_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" "flutter pub get"
description: pub get app module.
pub_get_shared:
run: dart pub global run melos exec --fail-fast --scope="*shared*" "flutter pub get"
description: pub get shared module.
check_unused_l10n_app:
run: dart pub global run melos exec --fail-fast --scope="*app*" "flutter pub run dart_code_metrics:metrics check-unused-l10n lib -p ^S$"
description: check unused l10n app.
check_unused_l10n_domain:
run: dart pub global run melos exec --fail-fast --scope="*domain*" "flutter pub run dart_code_metrics:metrics check-unused-l10n lib -p ^S$"
description: check unused l10n domain.