-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmelos.yaml
More file actions
73 lines (60 loc) · 1.6 KB
/
melos.yaml
File metadata and controls
73 lines (60 loc) · 1.6 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
# melos.yaml
name: monorepo_example
repository: https://github.com/username/monorepo_example
packages:
- packages/**
scripts:
# Development scripts
analyze:
description: Run Flutter analyze for all packages
run: |
melos exec -c 1 -- "flutter analyze"
format:
description: Format code with Flutter format
run: |
melos exec -c 1 -- "flutter format ."
clean:
description: Clean all build directories
run: |
melos exec -c 1 -- "flutter clean"
# Testing scripts
test:
description: Run tests for all packages
run: |
melos exec -c 1 --dir-exists="test" -- "flutter test"
# Build scripts for web_app
build:web:
description: Build web app
run: |
cd packages/web_app && flutter build web --release
# Build scripts for mobile_app
build:apk:
description: Build Android APK
run: |
cd packages/mobile_app && flutter build apk --release
build:appbundle:
description: Build Android APPBUNDLE
run: |
cd packages/mobile_app && flutter build appbundle --release
build:ios:
description: Build iOS app
run: |
cd packages/mobile_app && flutter build ios --release --no-codesign
build:all:
description: Build all platforms
run: |
melos run build:web && melos run build:apk && melos run build:ios
#
# # For web build
# melos run build:web
#
# # For Android APK
# melos run build:apk
# # For Android APPBUNDLE
# melos run build:appbundle
#
# # For iOS
# melos run build:ios
#
# # For all platforms at once
# melos run build:all