-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathmelos.yaml
147 lines (122 loc) · 4.52 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
name: stream_video_flutter
repository: https://github.com/GetStream/stream-video-flutter
versioning:
mode: independent
packages:
- dogfooding
- packages/**
command:
bootstrap:
# Dart and Flutter environment used in the project.
environment:
sdk: ^3.6.2
# We are not using carat '^' syntax here because flutter don't follow semantic versioning.
flutter: ">=3.27.4"
# Dependencies used in the project.
dependencies:
dart_webrtc: ^1.5.3
device_info_plus: ">=10.1.2 <12.0.0"
stream_chat_flutter: ^9.6.0
stream_webrtc_flutter: ^1.0.2
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.
analyze:warning:
run: |
melos exec -c 5 --ignore="*example*" -- \
dart analyze --fatal-warnings .
description: |
Run `dart analyze` in all packages.
Flags all compiler `errors` in the project.
analyze:error:
run: |
melos exec -c 5 --ignore="*example*" -- \
dart analyze --no-fatal-warnings .
description: |
Run `dart analyze` in all packages.
Flags all compiler `errors` in the project.
format:
run: dart format .
description: |
Run `dart format .` in all packages.
format:verify:
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.
gen-l10n: >
melos exec -c 1 --fail-fast --depends-on=flutter_localizations -- \
"flutter gen-l10n && dart format ."
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
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
build:example:android:
run: |
cd ./packages/stream_video_flutter/example &&
flutter build apk --release --verbose
description: |
Run `flutter build apk` in the example app.
docs:
run: |
npm install -g https://github.com/GetStream/stream-chat-docusaurus-cli &&
npx stream-chat-docusaurus -i -s
description: Runs the docusaurus documentation locally.