-
Notifications
You must be signed in to change notification settings - Fork 207
/
makefile
executable file
·222 lines (167 loc) · 4.12 KB
/
makefile
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
ifeq ($(OS),Windows_NT)
BUILD_CMD=.\build_and_run_app.bat
METRICS_CMD=.\tools\dart_code_metrics.bat
COMMIT_CHECK_CMD=.\tools\check_commit_message.bat
else
BUILD_CMD=./build_and_run_app.sh
METRICS_CMD=./tools/dart_code_metrics.sh
COMMIT_CHECK_CMD=./tools/check_commit_message.sh
endif
update_app_icon:
cd app && flutter pub run flutter_launcher_icons:main -f app_icon/app-icon.yaml
update_splash:
cd app && flutter pub run flutter_native_splash:create --path=splash/splash.yaml
remove_splash:
cd app && flutter pub run flutter_native_splash:remove --path=splash/splash.yaml
l10n:
@melos run l10n
test:
@melos run test
test_app:
@melos run test_app
test_domain:
@melos run test_domain
test_data:
@melos run test_data
test_shared:
@melos run test_shared
clean:
@melos clean
pub_get:
@melos bootstrap
format:
@melos run format
analyze:
@melos run analyze
analyze_app:
@melos run analyze_app
analyze_data:
@melos run analyze_data
analyze_domain:
@melos run analyze_domain
analyze_shared:
@melos run analyze_shared
lint:
@melos run lint
metrics:
@melos run metrics
metrics_app:
@melos run metrics_app
metrics_data:
@melos run metrics_data
metrics_domain:
@melos run metrics_domain
metrics_shared:
@melos run metrics_shared
format_lint:
@melos run format_lint
test_coverage:
@melos run test_coverage
check_unused_files:
@melos run check_unused_files
sync:
@melos bootstrap
@melos run l10n
@melos run force_build_all
build_all:
@melos run build_all
build_app:
@melos run build_app
build_domain:
@melos run build_domain
build_data:
@melos run build_data
build_shared:
@melos run build_shared
force_build_all:
@melos run force_build_all
force_build_app:
@melos run force_build_app
force_build_domain:
@melos run force_build_domain
force_build_data:
@melos run force_build_data
force_build_shared:
@melos run force_build_shared
watch_all:
@melos run watch_all
watch_app:
@melos run watch_app
watch_domain:
@melos run watch_domain
watch_data:
@melos run watch_data
watch_shared:
@melos run watch_shared
force_watch_all:
@melos run force_watch_all
force_watch_app:
@melos run force_watch_app
force_watch_domain:
@melos run force_watch_domain
force_watch_data:
@melos run force_watch_data
force_watch_shared:
@melos run force_watch_shared
run_dev:
cd tools && $(BUILD_CMD) develop run
run_qa:
cd tools && $(BUILD_CMD) qa run
run_stg:
cd tools && $(BUILD_CMD) staging run
run_prod:
cd tools && $(BUILD_CMD) production run
build_dev_apk:
cd tools && $(BUILD_CMD) develop build apk
build_qa_apk:
cd tools && $(BUILD_CMD) qa build apk
build_stg_apk:
cd tools && $(BUILD_CMD) staging build apk
build_prod_apk:
cd tools && $(BUILD_CMD) production build apk
build_dev_bundle:
cd tools && $(BUILD_CMD) develop build appbundle
build_qa_bundle:
cd tools && $(BUILD_CMD) qa build appbundle
build_stg_bundle:
cd tools && $(BUILD_CMD) staging build appbundle
build_prod_bundle:
cd tools && $(BUILD_CMD) production build appbundle
build_dev_ios:
cd tools && $(BUILD_CMD) develop build ios
build_qa_ios:
cd tools && $(BUILD_CMD) qa build ios
build_stg_ios:
cd tools && $(BUILD_CMD) staging build ios
build_prod_ios:
cd tools && $(BUILD_CMD) production build ios
build_dev_ipa:
cd tools && $(BUILD_CMD) develop build ipa --export-options-plist=ios/exportOptions.plist
build_qa_ipa:
cd tools && $(BUILD_CMD) qa build ipa --export-options-plist=ios/exportOptions.plist
build_stg_ipa:
cd tools && $(BUILD_CMD) staging build ipa --export-options-plist=ios/exportOptions.plist
build_prod_ipa:
cd tools && $(BUILD_CMD) production build ipa --export-options-plist=ios/exportOptions.plist
pub_get_data:
@melos run pub_get_data
pub_get_domain:
@melos run pub_get_domain
pub_get_app:
@melos run pub_get_app
pub_get_shared:
@melos run pub_get_shared
dart_code_metrics:
$(METRICS_CMD)
check_commit_message:
$(COMMIT_CHECK_CMD) "$(shell git log --format=%B -n 1 --no-merges $(BITBUCKET_COMMIT))"
gen_env:
dart pub get --directory=tools/gen_env
dart run tools/gen_env/lib/main.dart
pub_upgrade:
melos pub_upgrade
pub_sync:
cd tools && ./sync_all_pub_versions.sh
melos bootstrap
dart_fix:
dart fix --apply