-
Notifications
You must be signed in to change notification settings - Fork 12
/
melos.yaml
170 lines (149 loc) · 4.32 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
name: studyu
repository: https://github.com/hpi-studyu/studyu
packages:
- app
- designer_v2
- core
- flutter_common
scripts:
fix:
run: |
melos exec -c 6 -- \
"dart fix --apply"
description: Fix auto-fixable lint errors
outdated:
run: |
melos exec -c 6 --fail-fast -- \
"dart pub outdated"
description: Check all outdated dependencies
upgrade:
run: |
dart pub upgrade
melos exec -c 6 --fail-fast -- \
"dart pub upgrade" && melos bootstrap
description: Check all outdated dependencies
test:
run: |
melos exec -c 6 --fail-fast -- \
"flutter test"
description: Run `flutter test` for a specific package.
packageFilters:
dirExists: test
generate:
run: |
melos exec -c 1 --fail-fast -- \
"dart run build_runner build --delete-conflicting-outputs"
description: Generate files with build_runner
packageFilters:
scope:
- 'studyu_core'
- 'studyu_designer_v2'
reset:
run: |
git clean -x -d -f -q || true
melos clean
melos exec --flutter --concurrency=1 -- "flutter clean"
melos bootstrap
description: Reset the workspace to a pristine checkout status.
app:
run: |
melos exec -c 1 -- \
"flutter run -d chrome --web-port 8080"
packageFilters:
scope: studyu_app
description: Runs StudyU App with default environment
designer_v2:
run: |
melos exec -c 1 -- \
"flutter run -d chrome --web-port 8081"
packageFilters:
scope: studyu_designer_v2
description: Runs StudyU Designer with default environment
dev:app:
run: |
melos exec -c 1 -- \
"flutter run -d chrome --web-port 8080 --dart-define=STUDYU_ENV=.env.dev"
packageFilters:
scope: studyu_app
description: Runs StudyU App with the development environment
dev:designer_v2:
run: |
melos exec -c 1 -- \
"flutter run -d chrome --web-port 8081 --dart-define=STUDYU_ENV=.env.local"
packageFilters:
scope: studyu_designer_v2
description: Runs StudyU Designer with the development environment
local:app:
run: |
melos exec -c 1 -- \
"flutter run -d chrome --web-port 8080 --dart-define=STUDYU_ENV=.env.local"
packageFilters:
scope: studyu_app
description: Runs StudyU App with local environment
local:designer_v2:
run: |
melos exec -c 1 -- \
"flutter run -d chrome --web-port 8081 --dart-define=STUDYU_ENV=.env.local"
packageFilters:
scope: studyu_designer_v2
description: Runs StudyU Designer with local environment
build:android:
run: |
melos exec -c 2 --fail-fast -- \
"flutter build apk"
description: Build app for Android.
packageFilters:
dirExists: android
build:ios:
run: |
melos exec -c 2 --fail-fast -- \
"flutter build ipa --no-codesign"
description: Build app for iOS.
packageFilters:
dirExists: ios
build:web:
run: |
melos exec -c 2 --fail-fast -- \
"flutter build web"
description: Build app for Web.
packageFilters:
scope: [ studyu_app, studyu_designer_v2 ]
dirExists: web
build:web:app:
run: |
melos exec -c 1 --fail-fast -- \
"flutter build web"
description: Build app for Web.
packageFilters:
scope: studyu_app
build:web:designer_v2:
run: |
melos exec -c 1 --fail-fast -- \
"flutter build web"
description: Build designer_v2 for Web.
packageFilters:
scope: studyu_designer_v2
build:web:dev:
run: |
melos exec -c 2 --fail-fast -- \
"flutter build web --web-renderer auto --dart-define=STUDYU_ENV=.env.dev"
description: Build web dev.
packageFilters:
scope: [ studyu_app, studyu_designer_v2 ]
dirExists: web
build:web:app:dev:
run: |
melos exec -c 2 --fail-fast -- \
"flutter build web --web-renderer auto --dart-define=STUDYU_ENV=.env.dev"
description: Build web app dev.
packageFilters:
scope: studyu_app
dirExists: web
build:web:designer_v2:dev:
run: |
melos exec -c 2 --fail-fast -- \
"flutter build web --web-renderer auto --dart-define=STUDYU_ENV=.env.dev"
description: Build web designer_v2 dev.
packageFilters:
scope: studyu_designer_v2
dirExists: web