-
Notifications
You must be signed in to change notification settings - Fork 27
/
melos.yaml
42 lines (37 loc) · 1.36 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
name: university_app
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
hooks:
post: melos run format
packages:
- packages/*
- packages/neon/packages/*
- packages/neon/packages/dynamite/*
- packages/neon/packages/neon/*
- packages/neon/packages/**/example
ide:
intellij:
enabled: false
command:
bootstrap:
hooks:
post: melos run format
version:
hooks:
preCommit: |
melos bootstrap
git add packages/app/pubspec.lock
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 .
test: >
melos exec --no-flutter --concurrency=1 --fail-fast --packageFilters:
dirExists: test -- "dart test --concurrency=$(nproc --all) --fail-fast" &&
melos exec --flutter --concurrency=1 --fail-fast --packageFilters:
dirExists: test -- "flutter test --concurrency=$(nproc --all) --fail-fast"
generate:build_runner: melos exec --file-exists="build.yaml" -- dart run build_runner build --delete-conflicting-outputs && melos run format
generate:l10n: melos exec --flutter --dir-exists="lib/l10n" flutter gen-l10n && melos run format