-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmelos.yaml
55 lines (51 loc) · 1.39 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
name: ap_common
repository: https://github.com/abc873693/ap_common
packages:
- apps/**
- packages/**
command:
version:
fetchTags: false
# Generate commit links in package changelogs.
linkToCommits: true
# # Only allow versioning to happen on main branch.
# branch: main
# Additionally build a changelog at the root of the workspace.
workspaceChangelog: true
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
usePubspecOverrides: true
scripts:
analyze:
exec: dart analyze .
clean:
run: |
melos clean
fix:
run: |
melos exec -c 1 -- \
dart fix --apply
description: |
Run `dart fix --apply` in all packages.
analyze-ci:
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.
test:
run: |
melos exec -c 6 --fail-fast -- \
"flutter test"
description: Run `flutter test` for a specific package.
packageFilters:
dirExists:
- test
pub-check:
run: |
melos exec -c 1 --no-private --ignore="*example*" -- \
dart pub publish --dry-run