-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmelos.yaml
79 lines (68 loc) · 2.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
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
name: catalyst_voices
repository: https://github.com/input-output-hk/catalyst-voices
packages:
- catalyst_voices/*
- catalyst_voices/packages/**
- catalyst_voices_packages/**
command:
version:
linkToCommits: true
workspaceChangelog: true
bootstrap:
environment:
sdk: '>=3.3.0 <4.0.0'
flutter: 3.19.1
dependencies:
bloc_concurrency: ^0.2.2
bloc: ^8.1.2
collection: ^1.17.1
equatable: ^2.0.5
formz: ^0.7.0
meta: ^1.10.0
result_type: ^0.2.0
dev_dependencies:
test: ^1.24.9
build_runner: ^2.3.3
mocktail: ^1.0.1
scripts:
lint:
run: melos run analyze
description: Run all static analysis checks.
format:
run: melos exec dart format . --fix
description: Run `dart format` for all packages.
format-check:
run: melos exec dart format . --set-exit-if-changed
description: Run `dart format` checks for all packages.
analyze:
# We are setting the concurrency to 1 because a higher concurrency can crash
# the analysis server on low performance machines (like GitHub Actions).
run: |
melos exec -c 1 -- \
dart analyze . --fatal-infos
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
metrics:
run: |
melos exec -c 1 --ignore="*example*" -- \
flutter pub run dart_code_metrics:metrics analyze
description: |
Run `dart_code_metrics` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
test:select:
run: melos exec -- flutter test
description: Run `flutter test` for selected packages.
test:
run: melos run test:select --no-select
description: Run all Flutter tests in this project.
coverage:
run: |
melos exec -- flutter test --coverage &&
melos exec -- genhtml coverage/lcov.info --output-directory=coverage/
description: Generate coverage for the selected package.
build:pub_get:all:
run: flutter pub get
exec:
concurrency: 6
description: Install all dependencies