forked from Pavel-Sulimau/flutter_modularized_di
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
89 lines (69 loc) · 2.1 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
89
name: flutter_modularized_di
sdkPath: .fvm/flutter_sdk
packages:
- app
- packages/**
ide:
intellij:
enabled: false
command:
clean:
hooks:
post: melos exec rm -rf ./build ./android/.gradle ./ios/.symlinks ./ios/Pods ./ios/Podfile.lock ./.dart_tool ./pubspec.lock
bootstrap:
environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.22.2"
dependencies:
flutter_bloc: ^8.1.4
shared_preferences: ^2.2.2
provider: ^6.1.2
dev_dependencies:
flutter_lints: ^4.0.0
lints: ^4.0.0
# This _diff scripts belows will not work as intended until the following
# feature is implemented https://github.com/invertase/melos/pull/702.
scripts:
analyze: melos exec dart analyze .
analyze_diff:
run: melos exec --diff=origin/main...HEAD --include-dependents \
dart analyze .
format_check_diff:
run: melos exec --diff=origin/main...HEAD --include-dependents \
dart format . --set-exit-if-changed
format_check: melos exec dart format . --set-exit-if-changed
test_unit_package:
run: melos exec flutter test --exclude-tags golden
packageFilters:
dirExists:
- test
test_unit_package_diff:
run: melos exec --diff=origin/main...HEAD --include-dependents \
flutter test --exclude-tags golden
packageFilters:
dirExists:
- test
test_unit: melos run test_unit_package --no-select
test_unit_diff: melos run test_unit_package_diff --no-select
test_golden_package:
run: melos exec flutter test --tags golden --dart-define=CI=true
packageFilters:
dirExists:
- test
dependsOn:
- alchemist
test_golden_package_diff:
run: melos exec --diff=origin/main...HEAD --include-dependents \
flutter test --tags golden --dart-define=CI=true
packageFilters:
dirExists:
- test
dependsOn:
- alchemist
test_golden: melos run test_golden_package --no-select
test_golden_diff: melos run test_golden_package_diff --no-select
update_goldens:
run: melos exec flutter test --update-goldens
packageFilters:
dependsOn:
- alchemist