-
Notifications
You must be signed in to change notification settings - Fork 2
/
melos.yaml
47 lines (38 loc) · 964 Bytes
/
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
name: injecteo
command:
bootstrap:
usePubspecOverrides: true
runPubGetInParallel: false
version:
workspaceChangelog: true
packages:
- packages/**
scripts:
analyze:
run: melos exec dart analyze
get:
run: melos exec dart pub get
generate:
run: melos exec --depends-on="build_runner" dart run build_runner build --delete-conflicting-outputs
format:
run: melos exec dart format . -l 80
test:
run: |
melos run test:dart && melos run gen_coverage
description: Run all tests
test:dart:
description: Run Dart test with coverage generate
run: |
melos exec \
--fail-fast \
-- \
dart pub global run coverage:test_with_coverage
select-package:
flutter: false
dir-exists:
- test
gen_coverage:
run: |
rm -rf coverage
melos exec -c 1 -- "\$MELOS_ROOT_PATH/scripts/combine_coverage.sh"
genhtml coverage/lcov.info -o coverage/html