forked from thekorn/xandr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
122 lines (104 loc) · 3.12 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: xandr
packages:
- packages/*
- packages/*/example
sdkPath: .fvm/flutter_sdk
command:
clean:
hooks:
# Runs "flutter clean" in all Flutter packages (`--flutter`)
# with a concurrency of 3 at a time (`--concurrency=3`).
post: melos exec --flutter --concurrency=3 -- "fvm flutter clean"
version:
# Generate commit links in package changelogs.
#linkToCommits: true
# # Only allow versioning to happen on main branch.
# branch: master
# Additionally build a changelog at the root of the workspace.
workspaceChangelog: true
scripts:
analyze: fvm flutter analyze .
pana:
run: |
fvm dart run pana . --exit-code-threshold 100 2>&1
exec:
concurrency: 1
packageFilters:
ignore:
- '*example*'
description: Run pana for each package.
format:
run: |
melos format && \
swiftformat . 2>&1 && \
ktlint --format '**/*.kt' '**/*.kts' '!**/*.g.kt'
description: |
- Requires `swiftformat` (can be installed via Brew on macOS).
- Requires `ktlint` (can be installed via Brew on macOS).
test:all:
run: |
melos run test --no-select && \
npx cspell "**/*.md" 2>&1
description: |
Run all tests available.
test:
run: |
melos exec -c 6 --fail-fast -- \
"fvm flutter test"
description: Run `flutter test` for a specific package.
packageFilters:
dirExists:
- test
ignore:
- '*example*'
generate:pigeon:
run: |
melos exec -- "fvm flutter pub run pigeon --input ./pigeons/messages.dart" && \
melos run format --no-select
packageFilters:
fileExists: "pigeons/messages.dart"
description: Generate the pigeon messages for supported packages.
generate:pigeon:all:
run: |
melos run generate:pigeon --no-select
description: Generate the pigeon messages for all the supported packages.
generate:mocks:
run: |
melos exec -- "fvm flutter pub run build_runner build --delete-conflicting-outputs" && \
melos run format --no-select
packageFilters:
dependsOn:
- build_runner
description: Generate mocks for tests.
generate:mocks:all:
run: |
melos run generate:mocks --no-select
description: Generate mocks for all tests.
run:example:
run: fvm flutter run
description: Run the example app.
exec:
concurrency: 1
packageFilters:
scope: 'xandr_example'
run:example:interstitial:
run: fvm flutter run -t lib/main_interstitial.dart
description: Run the example app showing interstitial ads.
exec:
concurrency: 1
packageFilters:
scope: 'xandr_example'
run:example:multiadrequest:
run: fvm flutter run -t lib/main_multi_ad_request.dart
description: Run the example app loading ads in a multi ad request.
exec:
concurrency: 1
packageFilters:
scope: 'xandr_example'
run:example:fadeOnDone:
run: fvm flutter run -t lib/main_fadeOnDone.dart
description: Run the example app fading in once ad loaded.
exec:
concurrency: 1
packageFilters:
scope: 'xandr_example'