-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
60 lines (48 loc) · 1.63 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
58
59
60
name: glade_forms_workspace
packages:
- glade_forms
- glade_forms/example
- storybook
command:
bootstrap:
usePubspecOverrides: true
scripts:
setup:
description: Completely setups project
run: |
melos exec -- fvm flutter pub get
melos run gallery_setup
setup:win:
description: Completely setups project
run: |
melos exec -- fvm flutter pub get ^
melos run gallery_setup:win
# ANALYZING
lint:all:
run: melos run lint:dart && melos run lint:dcm
description: Run all static analysis checks.
lint:dart:
run: melos exec -- dart analyze . --fatal-infos
description: Run Dart static analysis checks.
lint:dcm:
run: melos exec -- dcm analyze . --fatal-style --fatal-performance --fatal-warnings
description: Run DCM static analysis checks.
# TESTING
test:
run: melos exec -- flutter test
packageFilters:
dirExists: test
description: Run all Dart tests.
# Gallery
gallery_setup:
run: |
melos exec -- flutter pub run easy_localization:generate -S "assets/translations" -o locale_loader.g.dart
melos exec -- fvm flutter pub run easy_localization:generate -S "assets/translations" --skip-unnecessary-keys -f keys -o locale_keys.g.dart
packageFilters:
dependsOn: easy_localization
gallery_setup:win:
run: |
melos exec -- flutter pub run easy_localization:generate -S "assets/translations" -o locale_loader.g.dart ^
melos exec -- fvm flutter pub run easy_localization:generate -S "assets/translations" --skip-unnecessary-keys -f keys -o locale_keys.g.dart
packageFilters:
dependsOn: easy_localization