-
Notifications
You must be signed in to change notification settings - Fork 1
/
melos.yaml
73 lines (59 loc) · 2.11 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
name: flutter_todo_starter
packages:
- "packages/**"
- "app"
sdkPath: .fvm/flutter_sdk
command:
bootstrap:
runPubGetInParallel: true
scripts:
icons:
run: sh tools/icons.sh
packageFilters:
scope: app
lint:all:
run: melos run analyze && melos run format
description: Run all static analysis checks
format:
run: melos exec -c 6 --fail-fast -- flutter format .
analyze:
run: melos exec -c 3 flutter analyze
description: Run analyze for Flutter packages in this project
test:
run: melos run test:selective_unit_test --no-select
description: Run all Flutter tests in this project.
test:coverage_report:
run: |
rm -r "$MELOS_ROOT_PATH/coverage_report"
melos exec --dir-exists="test" -- dart "$MELOS_ROOT_PATH/tools/full_coverage.dart"
melos run test
melos exec --dir-exists="coverage" -- dart "$MELOS_ROOT_PATH/tools/coverage.dart"
test:selective_unit_test:
run: melos exec --dir-exists="test" --fail-fast -- flutter test --no-pub --coverage
description: Run Flutter tests for a specific package in this project.
packageFilters:
dirExists: test
test:coverage_report_html:
run: |
melos run test:coverage_report
dir="$MELOS_ROOT_PATH/coverage_report"
genhtml --ignore-errors unmapped -o "$dir/html" "$dir/lcov.info"
clean:
run: melos exec -c 6 -- flutter clean
description: Clean Flutter packages
format:check:
run: melos exec -c 6 --fail-fast -- dart format --set-exit-if-changed .
codegen:
run: |
melos exec -c 6 --depends-on="build_runner" -- flutter pub run build_runner build --delete-conflicting-outputs
description: Run code generation using build_runner
packageFilters:
dependsOn: "build_runner"
codegen:selective:
run: melos exec -c 1 --depends-on="build_runner" -- flutter pub run build_runner build --delete-conflicting-outputs
description: Run code generation using build_runner in a specific package
packageFilters:
dependsOn: "build_runner"
upgrade:
run: melos exec -c 6 -- flutter pub upgrade
description: Upgrade Flutter packages