-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmelos.yaml
More file actions
58 lines (55 loc) · 1.57 KB
/
melos.yaml
File metadata and controls
58 lines (55 loc) · 1.57 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
name: flutter_forge_workspace
packages:
- plugins/*
- plugins/*/*
- packages/*
- packages/*/*
- packages/nonstop_cli/bricks/flutter_app_for_mono_repo/hooks
- packages/nonstop_cli/bricks/flutter_package_for_mono_repo/hooks
- packages/nonstop_cli/bricks/flutter_project_with_mono_repo/hooks
- packages/nonstop_cli/bricks/flutter_plugin_for_mono_repo/hooks
- packages/dzod/example
command:
version:
workspaceChangelog: false
fetchTags: true
updateGitTagRefs: false
linkToCommits: false
hooks:
preCommit: melos run update_nonstop_cli_version && melos run update_nonstop_cli_bundles
scripts:
lint:
description: "Run format and analyze all packages"
run: |
dart format --set-exit-if-changed . &&
dart analyze --fatal-infos .
exec:
concurrency: 5
failFast: true
fix:
description: "Apply Dart automated fixes to all packages"
run: dart fix --apply
exec:
concurrency: 5
packageFilters:
dirExists: lib
test:
description: "Run tests in all packages"
run: |
if [ -f "pubspec.yaml" ] && grep -q "flutter:" pubspec.yaml; then
flutter test
else
dart test
fi
exec:
concurrency: 1
failFast: false
packageFilters:
dirExists: ["test"]
update_nonstop_cli_version:
run: dart run tools/update_nonstop_cli_version.dart
update_nonstop_cli_bundles:
run: dart run tools/update_nonstop_cli_bundles.dart
sync:readme:
description: "Sync README sections across all packages"
run: dart run tools/readme_sync/readme_sync.dart