-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmelos.yaml
65 lines (53 loc) · 1.67 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
61
62
63
64
65
name: nekoton_repository
packages:
- .
scripts:
build_and_test:
description: GA main script
run: bash scripts/build_and_test.sh
codegen:
description: Generate code for all packages
exec: "flutter packages pub run build_runner build --delete-conflicting-outputs"
failFast: true
packageFilters:
dependsOn: "build_runner"
analyze:
description: Analyze a specific package in this project.
exec: flutter analyze . && flutter pub run dart_code_metrics:metrics analyze lib
failFast: true
packageFilters:
dependsOn: "dart_code_metrics"
check-format:
description: Check the format of a specific package in this project.
exec: dart format --set-exit-if-changed .
failFast: true
format:
exec: dart format .
description: Format a specific package in this project.
test:
description: Run Flutter tests for a specific package in this project.
exec: "flutter test test"
failFast: true
packageFilters:
flutter: true
dirExists: test
test:integration:
run: melos exec -c 1 --fail-fast -- "flutter test integration_test"
description: Run Flutter teintegration teststs for a specific package in this project.
packageFilters:
flutter: true
dirExists: integration_test
check-all:
description: Prepare to commit by checking all things
run: melos check-format && melos analyze && melos test && melos test:integration
failFast: true
git-check:
run: bash scripts/git-check.sh
description: Check if some code changed during build
command:
clean:
hooks:
post: bash scripts/clean.sh
version:
hooks:
preCommit: melos bs && git add --all