forked from canonical/ubuntu-desktop-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
40 lines (31 loc) · 1 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
name: ubuntu_desktop_installer
packages:
- packages/**
ignore:
- synthetic_package
environment:
sdk: '>=2.12.0 <3.0.0'
scripts:
# analyze all packages
analyze: >
melos exec -c 1 -- \
flutter analyze --no-fatal-infos .
# collect coverage information for all packages
coverage: >
melos exec -c 1 --fail-fast --dir-exists=test -- \
flutter test --coverage && melos run coverage:cleanup
# cleanup generated files from coverage
coverage:cleanup: >
melos exec --file-exists=coverage/lcov.info -- \
lcov --remove coverage/lcov.info '**/*.g.dart' '**/*.freezed.dart' -o coverage/lcov.info
# format all packages
format: >
flutter format --set-exit-if-changed .
# run build_runner to generate code in all packages
generate: >
melos exec -c 1 --fail-fast --depends-on="build_runner" -- \
dart run build_runner build --delete-conflicting-outputs
# run tests in all packages
test: >
melos exec -c 1 --fail-fast --dir-exists=test -- \
flutter test