-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
77 lines (67 loc) · 1.92 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
name: figmage_workspace
packages:
- .
- packages/*
command:
bootstrap:
hooks:
pre: |
dart pub global activate coverage
dart pub global activate full_coverage
version:
updateGitTagRefs: true
workspaceChangelog: false
hooks:
preCommit: |
melos run generate
git add .
scripts:
analyze:
run: |
dart analyze . --fatal-infos
exec:
# We are setting the concurrency to 1 because a higher concurrency can crash
# the analysis server on low performance machines (like GitHub Actions).
concurrency: 1
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
test:select:
run: dart test
exec:
concurrency: 6
failFast: true
packageFilters:
dirExists: test
description: Run `dart test` for selected packages.
test:
run: melos run test:select --no-select
description: Run all dart tests in this project.
coverage:select:
run: |
dart pub global run full_coverage --ignore '*}.dart'
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info -c --report-on=lib
rm -rf -f coverage/test/
rm -f coverage/coverage.json
exec:
concurrency: 6
failFast: true
packageFilters:
dirExists: test
description: Generate coverage for the selected package.
coverage:
run: melos run coverage:select --no-select
description: Generate coverage for all packages.
generate:select:
description: Generate code for selected packages.
run: dart run build_runner build --delete-conflicting-outputs
exec:
concurrency: 1
failFast: true
packageFilters:
dependsOn:
- build_runner
generate:
description: Generate code for all packages.
run: melos run generate:select --no-select