-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmelos.yaml
88 lines (71 loc) · 3.37 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
78
79
80
81
82
83
84
85
86
87
88
name: fl_template
packages:
- packages/**
scripts:
analyze:
run: |
melos exec -c 1 -- \
flutter analyze .
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:
run: dart format -o write --show all .
description: Format all the code in this project.
generate:
run: melos run generate:dart && melos run generate:flutter
description: Build all generated files for Dart & Flutter packages in this project.
generate:dart:
run: melos exec -c 1 --depends-on="build_runner" --no-flutter -- "dart run build_runner build --delete-conflicting-outputs"
description: Build all generated files for Dart packages in this project.
generate:flutter:
run: melos exec -c 1 --depends-on="build_runner" --flutter -- "flutter pub run build_runner build --delete-conflicting-outputs"
description: Build all generated files for Flutter packages in this project.
generate:launcher_icon:
run: melos exec --file-exists="flutter_launcher_icons.yaml" -c 1 --depends-on="flutter_launcher_icons" --flutter -- "flutter pub run flutter_launcher_icons:main"
description: Generate launcher icons for this project.
test:
run: melos run test:dart --no-select && melos run test:flutter --no-select && melos run test:genhtml_lcov
description: Run all Dart & Flutter tests in this project.
test:dart:
run: melos exec -c 1 --fail-fast -- "\$MELOS_ROOT_PATH/scripts/coverage.sh"
description: Run Dart tests for a specific package in this project.
packageFilters:
flutter: false
dirExists: test
test:flutter:
run: melos exec --dir-exists="test" -c 1 --fail-fast -- "flutter test --coverage --exclude-tags=golden"
description: Run Flutter tests for a specific package in this project.
packageFilters:
flutter: true
dirExists: test
test:genhtml_lcov:
run: melos exec --file-exists="coverage/lcov.info" -c 1 --fail-fast -- "genhtml coverage/lcov.info -o coverage"
description: Generate line coverage report from lcov.info.
test:golden:
run: melos exec --dir-exists="test" -c 1 --fail-fast -- "flutter test --update-goldens --tags=golden"
description: Run Flutter golden tests for a specific package in this project.
packageFilters:
flutter: true
dirExists: test
check:all:
run: melos run clean:ui && melos run analyze && melos run format && melos run generate && melos run test
description: Check all packages in this project.
outdated:
run: melos exec --file-exists="pubspec.yaml" -c 1 --fail-fast -- "flutter pub outdated && exit"
description: Run `flutter pub outdated` in all packages.
upgrade:
run: melos exec --file-exists="pubspec.yaml" -c 1 --fail-fast -- "flutter pub upgrade && exit"
description: Run `flutter pub upgrade` in all packages.
clean:
run: melos exec --file-exists="pubspec.yaml" -c 1 --fail-fast -- "flutter clean"
description: Run `flutter clean' for ios release to delete the build/ and .dart_tool/ directories.
packageFilters:
flutter: true
dirExists: build
clean:ui:
run: melos exec --file-exists="pubspec.yaml" -c 1 --fail-fast -- "flutter clean"
description: Run `flutter clean' for ios release to delete the build/ and .dart_tool/ directories.
packageFilters:
flutter: true
dirExists: assets/config/