-
Notifications
You must be signed in to change notification settings - Fork 2
/
melos.yaml
61 lines (50 loc) · 1.66 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
name: hermes
repository: https://github.com/input-output-hk/hermes
packages:
- dashboard/*
command:
version:
linkToCommits: true
workspaceChangelog: true
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