-
-
Notifications
You must be signed in to change notification settings - Fork 622
/
melos.yaml
66 lines (56 loc) · 1.69 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
name: graphql_flutter
ide:
intellij: true
packages:
- packages/**
scripts:
flutter_analyze:
run: melos exec --depends-on="graphql" -c 1 -- "dart format --set-exit-if-changed . && flutter analyze . --fatal-infos"
description: Run dart analyzer in a specific package.
select-package:
flutter: true
client_analyze:
run: melos exec -c 1 -- "dart format --set-exit-if-changed . && dart analyze . --fatal-infos"
description: Run dart analyzer in a specific package.
select-package:
flutter: false
flutter_test:
description: Run tests in a specific package.
run: melos exec --depends-on="graphql" -- "flutter test"
select-package:
flutter: true
dir-exists:
- "test/"
env:
MELOS_TEST: true
client_test:
description: Run tests in a specific package.
run: melos exec -- "dart pub get && dart pub run test"
select-package:
flutter: false
dir-exists:
- "test/"
env:
MELOS_TEST: true
flutter_test_coverage:
description: Run tests in a specific package.
run: melos exec --depends-on="graphql" -- "flutter test --coverage"
select-package:
flutter: true
dir-exists:
- "test/"
env:
MELOS_TEST: true
client_test_coverage:
description: Run tests in a specific package.
run: melos exec -- "dart run test --coverage="coverage" && dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib"
select-package:
flutter: false
dir-exists:
- "test/"
env:
MELOS_TEST: true
format: dart format -o write .
command:
bootstrap:
usePubspecOverrides: true