-
Notifications
You must be signed in to change notification settings - Fork 2
/
melos.yaml
45 lines (33 loc) · 1.27 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
name: apklis_dart_flutter
packages:
- packages/**
scripts:
build:
run: melos exec -c 1 "flutter pub get && flutter pub run build_runner build"
build:all:
run: melos exec -c 1 "flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs"
format:
run: melos exec -c 1 "flutter format ."
test:format:
run: melos exec -c 1 "find . -name "*.dart" ! -name "*.g.dart" ! -name "*.config.dart" ! -name "*.freezed.dart" ! -name "generated_plugin_registrant.dart" ! -path "*/i18n/*" ! -path "*/generated/*" ! -path "./proto/*" | tr "\n" " " | xargs flutter format --set-exit-if-changed"
test:analyze:
run: melos exec -c 1 "flutter analyze"
test:only:
run: melos exec -c 1 "flutter test --no-pub --coverage"
test:
run: |
melos run test:format
melos run test:analyze
melos run test:only
coverage:install:
run: |
npm i -g lcov-result-merger
flutter pub global activate remove_from_coverage
coverage:
run: |
lcov-result-merger 'packages/**/coverage/lcov.info' coverage/lcov.info
remove_from_coverage -f coverage/lcov.info -r "\.freezed\.dart$","\.g\.dart$","\.config\.dart$","generated_plugin_registrant.dart$"
environment:
sdk: '>=2.12.0 <3.0.0'
dev_dependencies:
lint: ^1.5.3