-
Notifications
You must be signed in to change notification settings - Fork 2
/
melos.yaml
36 lines (31 loc) · 1.08 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
# Inspired by https://github.com/firebase/flutterfire/blob/master/melos.yaml
name: tvarkau-lietuva-frontend
repository: https://github.com/AplinkosMinisterija/tvarkau-lietuva-frontend
packages:
- api_client
- core
- core_ui
- features/**
scripts:
lint:all:
run: melos run analyze && melos run format
description: Run all static analysis checks.
analyze:
# We are setting the concurrency to 1 because a higher concurrency can crash
# the analysis server on low performance machines (like GitHub Actions).
run: dart analyze .
exec:
concurrency: 1
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:
run: |
dart pub global run flutter_plugin_tools format
description: |
Formats the code of all packages.
- Requires `flutter_plugin_tools` (`pub global activate flutter_plugin_tools`).
- Requires `git`.
# Additional cleanup lifecycle script, executed when `melos clean` is run.
postclean: >
melos exec -c 6 -- "flutter clean"