-
Notifications
You must be signed in to change notification settings - Fork 49
/
melos.yaml
43 lines (38 loc) · 1.31 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
name: FlutterFireCLI
repository: https://github.com/invertase/flutterfire_cli
packages:
- packages/**
- "*"
command:
version:
# Generate commit links in package changelogs.
linkToCommits: true
# Additionally build a changelog at the root of the workspace.
workspaceChangelog: true
hooks:
preCommit: |
dart run scripts/generate_version.dart && git add packages/flutterfire_cli/lib/version.g.dart
scripts:
analyze:
run: melos exec -c 1 -- "dart analyze . --fatal-infos"
description: Run dart analyzer in a specific package.
select-package:
ignore:
- "*monorepo*"
format-check:
# Necessary to stop it formatting `firebase_options.dart` file which breaks comparison in tests
run: melos exec -- "find . -iname \"*.dart\" ! -name \"firebase_options.dart\" -exec dart format {} --set-exit-if-changed \;"
description: Run `dart format` checks for all packages.
select-package:
ignore:
- "flutterfire_starter"
- "*monorepo*"
test:
description: Run tests in a specific package.
run: melos exec --ignore="flutterfire_starter_hooks" --concurrency=1 -- "dart pub get && dart run test --reporter expanded"
select-package:
dir-exists:
- "test/"
scope:
- flutterfire_cli
format: dart format -o write .