-
Notifications
You must be signed in to change notification settings - Fork 13
/
melos.yaml
77 lines (53 loc) · 2.22 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
name: theme_tailor
packages:
- packages/**
scripts:
get:
run: melos run get_dart && melos run get_flutter
get_dart:
run: melos exec --no-flutter flutter pub get
get_flutter:
run: melos exec --flutter flutter pub get
generate:
run: melos run generate_dart && melos run generate_flutter
generate_dart:
run: melos exec --no-flutter --depends-on="build_runner" dart run build_runner build --delete-conflicting-outputs
generate_flutter:
run: melos exec --flutter --depends-on="build_runner" flutter pub run build_runner build --delete-conflicting-outputs
test:
run: melos run test_dart && melos run test_flutter
test_dart:
run: melos exec --no-flutter --dir-exists="test" dart test
test_flutter:
run: melos exec --flutter --dir-exists="test" flutter test
test:coverage:
run: melos run test_dart:coverage && melos run test_flutter:coverage
description: Run Dart tests for a specific package in this project.
test_dart:coverage:
run: melos exec --no-flutter --dir-exists="test" -c 1 --fail-fast -- "\$MELOS_ROOT_PATH/scripts/coverage.sh"
test_flutter:coverage:
run: melos exec --flutter --dir-exists="test" -c 1 --fail-fast -- flutter test --coverage
analyze:
run: melos run analyze_dart && melos run analyze_flutter
analyze_dart:
run: melos exec --no-flutter dart analyze
analyze_flutter:
run: melos exec --flutter flutter analyze
get:fvm:
run: melos run get_dart:fvm && melos run get_flutter:fvm
get_dart:fvm:
run: melos exec --no-flutter fvm dart pub get
get_flutter:fvm:
run: melos exec --flutter fvm flutter pub get
generate:fvm:
run: melos run generate_dart:fvm && melos run generate_flutter:fvm
generate_dart:fvm:
run: melos exec --no-flutter --depends-on="build_runner" fvm dart run build_runner build --delete-conflicting-outputs
generate_flutter:fvm:
run: melos exec --flutter --depends-on="build_runner" fvm flutter pub run build_runner build --delete-conflicting-outputs
test:fvm:
run: melos run test_dart:fvm && melos run test_flutter:fvm
test_dart:fvm:
run: melos exec --no-flutter --dir-exists="test" fvm dart test
test_flutter:fvm:
run: melos exec --flutter --dir-exists="test" fvm flutter test