-
Notifications
You must be signed in to change notification settings - Fork 347
/
melos.yaml
177 lines (157 loc) · 5.46 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
name: stream_chat_flutter
repository: https://github.com/GetStream/stream-chat-flutter
packages:
- packages/**
command:
bootstrap:
# It seems so that running "pub get" in parallel has some issues (like
# https://github.com/dart-lang/pub/issues/3404). Disabling this feature
# makes the CI much more stable.
runPubGetInParallel: false
# Dart and Flutter environment used in the project.
environment:
sdk: ^3.5.4
# We are not using carat '^' syntax here because flutter don't follow semantic versioning.
flutter: ">=3.24.5"
# List of all the dependencies used in the project.
dependencies:
async: ^2.11.0
cached_network_image: ^3.3.1
chewie: ^1.8.1
collection: ^1.17.2
connectivity_plus: ^6.0.3
contextmenu: ^3.0.0
cupertino_icons: ^1.0.3
desktop_drop: ^0.5.0
diacritic: ^0.1.5
dio: ^5.4.3+1
drift: ^2.22.1
equatable: ^2.0.5
ezanimation: ^0.6.0
file_picker: ^8.0.5
file_selector: ^1.0.3
flutter_markdown: ^0.7.2+1
flutter_portal: ^1.1.4
flutter_svg: ^2.0.10+1
freezed_annotation: ^2.4.1
get_thumbnail_video: ^0.7.3
http_parser: ^4.0.2
image_gallery_saver_plus: ^3.0.5
image_picker: ^1.1.2
image_size_getter: ^2.1.3
jiffy: ^6.2.1
jose: ^0.3.4
json_annotation: ^4.9.0
just_audio: ^0.9.38
logging: ^1.2.0
lottie: ^3.1.2
media_kit: ^1.1.10+1
media_kit_video: ^1.2.4
meta: ^1.9.1
mime: ^2.0.0
path: ^1.8.3
path_provider: ^2.1.3
photo_manager: ^3.2.0
photo_view: ^0.15.0
rate_limiter: ^1.0.0
responsive_builder: ^0.7.0
rxdart: ^0.28.0
share_plus: ^10.0.2
shimmer: ^3.0.0
sqlite3_flutter_libs: ^0.5.24
stream_chat: ^8.3.0
stream_chat_flutter: ^8.3.0
stream_chat_flutter_core: ^8.3.0
stream_chat_localizations: ^8.3.0
stream_chat_persistence: ^8.3.0
synchronized: ^3.1.0+1
thumblr: ^0.0.4
url_launcher: ^6.3.0
uuid: ^4.4.0
video_player: ^2.8.7
web_socket_channel: ^3.0.1
# List of all the dev_dependencies used in the project.
dev_dependencies:
alchemist: ^0.11.0
build_runner: ^2.4.9
drift_dev: ^2.22.1
fake_async: ^1.3.1
faker_dart: ^0.2.1
freezed: ^2.4.2
json_serializable: ^6.7.1
mocktail: ^1.0.0
path: ^1.8.3
test: ^1.24.6
scripts:
postclean:
run: melos run clean:flutter --no-select
description: Runs "flutter clean" in all Flutter packages
lint:all:
run: melos run analyze && melos run format
description: Run all static analysis checks
analyze:all:
run: melos run analyze && melos run metrics
description: Run all
analyze:
run: |
melos exec -c 5 --ignore="*example*" -- \
dart analyze --fatal-infos .
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:
run: dart format --set-exit-if-changed .
description: |
Run `dart format --set-exit-if-changed .` in all packages.
metrics:
run: |
melos exec -c 1 --ignore="*example*" -- \
flutter pub run dart_code_metrics:metrics analyze lib
description: |
Run `dart_code_metrics` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
lint:pub:
run: |
melos exec -c 5 --no-private --ignore="*example*" -- \
flutter pub publish --dry-run
description: |
Run `pub publish --dry-run` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
generate:all:
run: melos run generate:dart && melos run generate:flutter
description: Build all generated files for Dart & Flutter packages in this project.
generate:dart:
run: melos exec -c 1 --depends-on="build_runner" --no-flutter -- "dart run build_runner build --delete-conflicting-outputs"
description: Build all generated files for Dart packages in this project.
generate:flutter:
run: melos exec -c 1 --depends-on="build_runner" --flutter -- "flutter pub run build_runner build --delete-conflicting-outputs"
description: Build all generated files for Flutter packages in this project.
test:all:
run: melos run test:dart --no-select && melos run test:flutter --no-select
description: Run all Dart & Flutter tests in this project.
test:dart:
run: melos exec -c 1 --fail-fast -- "flutter test --coverage"
description: Run Dart tests for a specific package in this project.
packageFilters:
flutter: false
dirExists: test
test:flutter:
run: melos exec -c 4 --fail-fast -- "flutter test --coverage"
description: Run Flutter tests for a specific package in this project.
packageFilters:
flutter: true
dirExists: test
update:goldens:
run: melos exec -c 1 --depends-on="alchemist" -- "flutter test --tags golden --update-goldens"
description: Update golden files for all packages in this project.
clean:flutter:
run: melos exec -c 4 --fail-fast -- "flutter clean"
description: Run Flutter clean for a specific package in this project.
packageFilters:
flutter: true
coverage:ignore-file:
run: |
melos exec -c 5 --fail-fast -- "\$MELOS_ROOT_PATH/.github/workflows/scripts/remove-from-coverage.sh"
description: Removes all the ignored files from the coverage report.
packageFilters:
dirExists: coverage