-
Notifications
You must be signed in to change notification settings - Fork 32
/
melos.yaml
51 lines (45 loc) · 1.8 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
name: neon
repository: https://github.com/nextcloud/neon
sdkPath: .fvm/flutter_sdk
bootstrap:
# It seems so that running "pub get" in parallel has some issues (like
# https://github.com/dart-lang/pub/issues/3404). Disabling this feature
# makes the CI much more stable.
runPubGetInParallel: false
packages:
- packages/*
- packages/*/packages/*
- packages/**/example
ide:
intellij:
enabled: false
command:
bootstrap:
hooks:
post: melos run format
version:
hooks:
preCommit: |
melos bootstrap
git add packages/neon_framework/example/pubspec.lock
# Needed until https://github.com/invertase/melos/issues/591 is supported
post: |
git commit --amend --signoff --no-edit
scripts:
format: dart format --fix --line-length 120 .
format:check: dart format --output=none --set-exit-if-changed --line-length 120 .
analyze: >
dart analyze --fatal-infos . &&
rm -rf packages/neon_framework/example/linux/flutter/ephemeral/ &&
dart run custom_lint --fatal-infos .
test: >
melos run test:dart &&
melos run test:flutter
test:dart: >
melos exec --no-flutter --concurrency=1 --fail-fast --dir-exists=test -- "
dart test --concurrency=$(nproc --all) --coverage=coverage &&
dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage
"
test:flutter: melos exec --flutter --concurrency=1 --fail-fast --dir-exists=test -- flutter test --concurrency=$(nproc --all) --coverage
generate:neon:build_runner: melos exec --scope="neon*" --file-exists="build.yaml" -- dart run build_runner build --delete-conflicting-outputs && melos run format
generate:neon:l10n: melos exec --flutter --dir-exists="lib/l10n" flutter gen-l10n && melos run format