-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
103 lines (87 loc) · 2.12 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
name: hackathon_template
sdkPath: .fvm/versions/3.24.4
packages:
- apps/**
- packages/**
command:
version:
brach: main
bootstrap:
dev_dependencies:
build_runner: ^2.4.13
flutter_gen_runner: ^5.8.0
pedantic_mono: ^1.29.0
environment:
sdk: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
hooks:
post: melos run _bootstrap
clean:
hooks:
post: melos run clean:post
scripts:
analyze:
exec: flutter analyze
get:
run: melos exec -- "flutter pub get"
gen:
exec:
concurrency: 1
packageFilters:
dependsOn: "build_runner"
dirExists: "lib"
flutter: true
run: flutter pub run build_runner build --delete-conflicting-outputs
gen:watch:
exec:
concurrency: 10
packageFilters:
dirExists: lib
dependsOn: "build_runner"
run: flutter pub run build_runner watch --delete-conflicting-outputs
build:apb:
exec:
concurrency: 1
packageFilters:
dirExists: "lib"
flutter: true
run: flutter build appbundle --debug --target lib/main.dart
build:apk:
exec:
concurrency: 1
packageFilters:
dirExists: "lib"
flutter: true
run: flutter build apk --debug --target lib/main.dart
build:ipa:
exec:
concurrency: 1
packageFilters:
dirExists: "lib"
flutter: true
run: flutter build ipa --debug --target lib/main.dart
build:web:
exec:
concurrency: 1
packageFilters:
dirExists: "lib"
flutter: true
run: flutter build web --target lib/main.dart
deploy:
build:web:
exec:
concurrency: 1
packageFilters:
dirExists: "build/web"
flutter: true
run: firebase deploy
clean:
run: melos exec -c 1 -- "flutter clean"
_bootstrap:
steps:
- melos run _bootstrap:flutter
_bootstrap:flutter:
steps:
- melos exec --concurrency 1 --flutter -- "flutter pub get"
- melos exec --concurrency 1 --flutter -- "flutter pub global activate flutter_gen"
- melos exec --concurrency 1 --flutter -- "flutter pub run build_runner build --delete-conflicting-outputs"