-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathmelos.yaml
59 lines (48 loc) · 1.51 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
name: coopartila_workspace
# sdkPath: .fvm/flutter_sdk
command:
bootstrap:
hooks:
post: |
dart pub global activate full_coverage
packages:
- ./**
scripts:
analyze:
description: analyze.
exec: "flutter analyze --no-fatal-infos"
format:
description: format files.
steps:
- dart format --set-exit-if-changed ./app
- dart format --set-exit-if-changed ./core_module
- dart format --set-exit-if-changed ./dashboard
- dart format --set-exit-if-changed ./design_system
get:
description: downloads pub packages.
exec: "flutter pub get"
test:
description: test all packages.
exec: "flutter test --no-pub --coverage"
packageFilters:
dirExists:
- test
failFast: true
ci:
description: Run CI.
steps:
- dart run melos run format
- dart run melos run analyze
- dart run melos run test
build-apk-dev:
description: Build DEVELOPMENT APK.
run: "cd app && flutter build apk --split-per-abi --dart-define-from-file=dev.env -t lib/main_dev.dart"
build-apk:
description: Build PRODUCTION APK.
run: "cd app && flutter build apk --split-per-abi --dart-define-from-file=.env -t lib/main_prod.dart"
build-ios-dev:
description: Build DEVELOPMENT IOS APP.
run: "cd app && flutter build ios --dart-define-from-file=dev.env -t lib/main_dev.dart"
build-ios:
description: Build PRODUCTION IOS APP.
run: "cd app && flutter build ios --dart-define-from-file=.env -t lib/main_prod.dart"