-
Notifications
You must be signed in to change notification settings - Fork 64
/
melos.yaml
57 lines (46 loc) · 1.62 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
name: hasura_connect
repository: https://github.com/Flutterando/hasura_connect
versioning:
# Versioning mode, currently only independent supported.
mode: independent
packages:
- packages/**
command:
bootstrap:
usePubspecOverrides: true
version:
# Generate commit links in package changelogs.
linkToCommits: true
# Only allow versioning to happen on main branch.
branch: master
# Additionally build a changelog at the root of the workspace.
workspaceChangelog: true
scripts:
lint:all:
run: melos run analyze && melos run format
description: Run all static analysis checks.
analyze:
run: |
melos exec -c 5 -- \
dart analyze . --fatal-infos
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:
run: |
melos exec -c 5 -- \
dart format .
description: |
Build a specific example app for Android.
- Requires `flutter_plugin_tools` (`pub global activate flutter_plugin_tools`).
- Requires `clang-format` (can be installed via Brew on macOS).
- Requires `swiftformat` (can be installed via Brew on macOS).
gen_coverage: melos run test && melos exec -- "$MELOS_ROOT_PATH/combine_coverage.sh"
test:
run: melos exec --dir-exists="test" --fail-fast -- flutter test --no-pub --coverage
description: Execute all Tests
test:selectable-package:
run: melos exec --dir-exists="test" --fail-fast -- flutter test --no-pub --coverage
description: Execute a selected Tests
select-package:
dir-exists: test