forked from rrousselGit/riverpod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
60 lines (50 loc) · 2.05 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
name: my_project
command:
bootstrap:
usePubspecOverrides: true
packages:
- website/**
- packages/**
- examples/**
scripts:
# we voluntarily do not use melos inside goldens
postbootstrap: |
cd MELOS_ROOT_PATH/packages/riverpod_cli/fixtures/notifiers/input &&
flutter pub get &&
cd MELOS_ROOT_PATH/packages/riverpod_cli/fixtures/notifiers/golden &&
flutter pub get &&
cd MELOS_ROOT_PATH/packages/riverpod_cli/fixtures/unified_syntax/input &&
flutter pub get &&
cd MELOS_ROOT_PATH/packages/riverpod_cli/fixtures/unified_syntax/golden &&
flutter pub get
analyze:
run: |
melos exec -c 1 -- \
flutter analyze .
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
generate:
run: melos run generate:dart && melos run generate:flutter
description: Build all generated files for Dart & Flutter packages in this project.
generate:dart:
run: melos exec -c 1 --depends-on="build_runner" --no-flutter --ignore="riverpod_lint_flutter_test" -- "dart run build_runner build --delete-conflicting-outputs"
description: Build all generated files for Dart packages in this project.
generate:flutter:
run: melos exec -c 1 --depends-on="build_runner" --flutter -- "flutter pub run build_runner build --delete-conflicting-outputs"
description: Build all generated files for Flutter packages in this project.
test:
run: melos run test:dart --no-select && melos run test:flutter --no-select
description: Run all Dart & Flutter tests in this project.
test:dart:
run: melos exec -c 1 --fail-fast -- "\$MELOS_ROOT_PATH/scripts/coverage.sh"
description: Run Dart tests for a specific package in this project.
select-package:
flutter: false
dir-exists: test
test:flutter:
run: melos exec --dir-exists="test" -c 1 --fail-fast -- "flutter test --coverage"
description: Run Flutter tests for a specific package in this project.
select-package:
flutter: true
dir-exists: test