-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
174 lines (147 loc) · 3.55 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
name: flutter_memo
packages:
- app
- domain
- data/repository
- data/datastore
- model
sdkPath: .fvm/flutter_sdk
command:
bootstrap:
usePubspecOverrides: true
environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.10.0"
dependencies:
flutter:
sdk: flutter
collection: ^1.18.0
flutter_hooks: ^0.20.5
freezed_annotation: ^2.4.4
go_router: ^14.2.3
hooks_riverpod: ^2.5.2
riverpod_annotation: ^2.3.5
dev_dependencies:
flutter_test:
sdk: flutter
analyzer: ^6.5.0
build_runner: ^2.4.12
custom_lint:
flutter_lints: ^3.0.1
freezed: ^2.5.7
mockito: '^5.4.4'
riverpod: '^2.5.1'
riverpod_generator: ^2.4.3
riverpod_lint: ^2.3.13
scripts:
prepare: melos bs && melos run build_runner:all
outdated:
run: |
flutter pub outdated --show-all --transitive
exec:
failFast: true
packageFilters:
scope: "flutter_memo"
# ---------------------------------- run app -----------------------------------
app:
run: |
melos analyze &&
flutter run
exec:
failFast: true
packageFilters:
scope: "flutter_memo"
# ------------------------------ run build_runner ------------------------------
build_runner:all:
run: |
melos run build_runner:app &&
melos run build_runner:domain &&
melos run build_runner:data:repository &&
melos run build_runner:data:datastore &&
melos run build_runner:model
build_runner:app:
run: |
dart run build_runner build --delete-conflicting-outputs
exec:
failFast: true
packageFilters:
scope: "flutter_memo"
build_runner:domain:
run:
dart run build_runner build --delete-conflicting-outputs
exec:
failFast: true
packageFilters:
scope: "domain"
build_runner:data:datastore:
run: |
dart run build_runner build --delete-conflicting-outputs
exec:
failFast: true
packageFilters:
scope: "datastore"
build_runner:data:repository:
run: |
dart run build_runner build --delete-conflicting-outputs
exec:
failFast: true
packageFilters:
scope: "repository"
build_runner:model:
run: |
dart run build_runner build --delete-conflicting-outputs
exec:
failFast: true
packageFilters:
scope: "model"
# ------------------------------------ Test ------------------------------------
test:all:
run: |
melos run test:data:repository &&
melos run test:data:datastore
test:app:
run:
flutter test
exec:
failFast: true
packageFilters:
scope: "flutter_memo"
test:model:
run: |
flutter test
exec:
failFast: true
packageFilters:
scope: "model"
test:domain:
run: |
flutter test
exec:
failFast: true
packageFilters:
scope: "domain"
test:data:repository:
run: |
flutter test
exec:
failFast: true
packageFilters:
scope: "repository"
test:data:datastore:
run:
flutter test
exec:
failFast: true
packageFilters:
scope: "datastore"
# -------------------------------- dependencies --------------------------------
deps:app:
run: flutter pub deps -C app -s compact
deps:domain:
run: flutter pub deps -C domain -s compact
deps:model:
run: flutter pub deps -C model -s compact
deps:data:repository:
run: flutter pub deps -C data/repository -s compact
deps:data:datastore:
run: flutter pub deps -C data/datastore -s compact