-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmelos.yaml
More file actions
78 lines (64 loc) · 1.67 KB
/
Copy pathmelos.yaml
File metadata and controls
78 lines (64 loc) · 1.67 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: flites
packages:
- apps/**
- packages/**
ignore:
- "**/build/**"
- "**/.dart_tool/**"
scripts:
### Needed in case of adding a build_runner
# install:
# run: melos bs && melos build_runner
# description: Run all static analysis checks.
###
### code quality
###
lint:
run: melos run analyze && melos run format
description: Run all static analysis checks.
format:
run: |
melos exec --concurrency 1 --fail-fast -- dart format .
fix:
run: "melos exec --concurrency 1 --fail-fast -- dart fix --apply ."
qualitycheck:
run: "melos bootstrap && \
melos run lint && \
melos run test:all"
description: Run all targets generally expected in CI for a full local quality check.
analyze:
run: |
melos exec -c 1 -- \
dart analyze . --fatal-infos
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format-fail:
run: |
melos exec -c 1 -- \
dart format --set-exit-if-changed .
description: |
Run `dart format` in all packages.
###
### tests
###
test:all:
run: "melos run test --no-select"
description: |
Run all tests available.
test:
run: |
melos exec -c 1 --fail-fast -- \
"flutter test"
description: Run `flutter test` for a specific package.
###
### Code Generation (not needed for now)
###
# build_runner:
# run: |
# melos exec -c 1 --fail-fast -- \
# "dart run build_runner build --delete-conflicting-outputs"
# packageFilters:
# dependsOn:
# - build_runner
# description: Runs build runner