-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
melos.yaml
98 lines (92 loc) · 2.64 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
name: flutter_local_notifications
repository: https://github.com/MaikuB/flutter_local_notifications
packages:
- flutter_local_notifications
- flutter_local_notifications_linux
- flutter_local_notifications_windows
- flutter_local_notifications_platform_interface
- flutter_local_notifications/example/
command:
bootstrap:
usePubspecOverrides: true
ide:
intellij: false
scripts:
analyze:
run: melos exec -c 1 -- "dart analyze . --fatal-infos"
description: Run dart analyzer in a specific package.
test:unit:
description: Run unit tests in a specific package.
run: melos exec -c 1 -- "flutter test"
packageFilters:
ignore: '*_windows'
dirExists:
- test
test:unit:android:
description: Runs java unit tests
run: melos exec -c 1 -- "flutter build apk --debug && cd android && ./gradlew flutter_local_notifications:testDebug"
packageFilters:
scope: "*example*"
test:unit:windows:
description: Runs Windows-specific unit tests
run: melos exec -c 1 -- "dart test"
packageFilters:
scope: '*_windows'
test:integration:
run: melos exec -c 1 -- "flutter test integration_test"
description: Run integration tests
packageFilters:
ignore: '*_windows'
dirExists:
- integration_test
scope: "*example*"
build:example_android:
run: |
melos exec -c 1 -- \
"flutter build apk --debug"
description: Build a specific example app for Android.
packageFilters:
dirExists:
- android
scope: "*example*"
build:example_ios:
run: |
melos exec -c 1 -- \
"flutter build ios --no-codesign --debug"
description: Build a specific example app for iOS.
packageFilters:
dirExists:
- ios
scope: "*example*"
build:example_macos:
run: |
melos exec -c 1 -- \
"flutter build macos"
description: Build a specific example app for macOS.
packageFilters:
dirExists:
- macos
scope: "*example*"
build:example_linux:
run: |
melos exec -c 1 -- \
"flutter build linux"
description: Build a specific example app for Linux.
packageFilters:
dirExists:
- linux
scope: "*example*"
build:example_windows:
run: |
melos exec -c 1 -- \
"dart run msix:create"
description: Build a specific example app for Windows.
packageFilters:
dirExists:
- windows
scope: "*example*"
clean:
run: git clean -x -d -f -q
description: Runs git clean as though repo was just checked out
format: dart format -o write .
format-ci: dart format --output=none --set-exit-if-changed .