-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpubspec.yaml
More file actions
143 lines (124 loc) · 3.64 KB
/
Copy pathpubspec.yaml
File metadata and controls
143 lines (124 loc) · 3.64 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: melos_starter
environment:
sdk: ">=3.5.0 <4.0.0"
workspace:
- "app/melos_template"
- "packages/di_provider"
- "packages/foundation"
- "packages/network"
- "packages/repository"
- "packages/service"
- "packages/state"
- "packages/ui"
- "packages/test_util"
- "packages/utility"
dev_dependencies:
melos: ^7.0.0-dev.7
dependencies:
cider: ^0.2.8
very_good_analysis: ^9.0.0
melos:
repository: https://github.com/rensawamo/melos_starter
sdkPath: .fvm/flutter_sdk/
command:
bootstrap:
environment:
sdk: ">=3.5.0 <4.0.0"
scripts:
analyze:
run: flutter analyze .
packageFilters:
dirExists: lib
fix:
exec: dart fix --apply
description: Run `dart fix --apply` in all packages.
format:ci:
run: |
melos exec -- \
dart format --set-exit-if-changed $(find . -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.*g.dart" -o -name "*.gen.dart" -o -wholename "./.dart_tool/*" \) )
description: Run format.
packageFilters:
flutter: true
dirExists: [lib, test]
gen:
run: |
melos exec -c 1 -- \
dart run build_runner build --delete-conflicting-outputs
description: Run generate code.
packageFilters:
dirExists: lib
dependsOn: "build_runner"
gen:watch:
run: dart run build_runner watch --delete-conflicting-outputs
exec:
concurrency: 99
description: Watch and run generate code.
packageFilters:
dirExists: lib
dependsOn: "build_runner"
gen:icons:
exec: dart run flutter_launcher_icons
description: Generate launcher icons.
packageFilters:
dirExists: lib
dependsOn: "flutter_launcher_icons"
test:
run: flutter test
exec:
failFast: false
description: Run flutter test.
packageFilters:
flutter: true
dirExists: test
test:ci:
run: flutter test --coverage
exec:
failFast: true
description: Run flutter test for CI.
packageFilters:
flutter: true
dirExists: test
flutterfire:update:
exec: flutterfire update
description: Run flutterfire update.
packageFilters:
flutter: true
dirExists: lib
dependsOn: "firebase_core"
pod:
run: melos run pod:ios --no-select && melos run pod:macos --no-select
description: Clean install the Pods
pod:ios:
exec: cd ios && rm -f Podfile.lock && pod install --repo-update
description: Run pod install on iOS.
packageFilters:
dirExists: [lib, ios]
fileExists: "ios/Podfile"
pod:macos:
exec: cd macos && rm -f Podfile.lock && pod install --repo-update
description: Run pod install on macOS.
packageFilters:
dirExists: [lib, macos]
fileExists: "macos/Podfile"
build:android:prod:
run: flutter build appbundle --dart-define-from-file=dart_defines/prod.env
exec:
concurrency: 1
description: Build the AppBundle for the production app.
packageFilters:
flutter: true
dirExists: [lib, android]
upload:ios:prod:
run: flutter build ipa --dart-define-from-file=dart_defines/prod.env --export-options-plist="ios/prod/ExportOptions.plist"
exec:
concurrency: 1
description: Upload the IPA for the production app.
packageFilters:
flutter: true
dirExists: [lib, ios]
upgrade:major:
description: Upgrade all dependencies to the latest major version.
run: dart pub upgrade --major-versions
exec:
concurrency: 1
orderDependents: true