forked from Stacked-Org/stacked
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
71 lines (68 loc) · 1.82 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
66
67
68
69
70
71
name: FilledStacks
repository: https://github.com/FilledStacks/stacked
packages:
- packages/stacked/**
- packages/stacked_crashlytics/**
- packages/stacked_firebase_auth/**
- packages/stacked_generator/**
- packages/stacked_gql/**
- packages/stacked_hooks/**
# - packages/stacked_localisation/**
- packages/stacked_services/**
- packages/stacked_themes/**
command:
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:
pub_get:
run: |
melos exec \
-c 8 \
--fail-fast \
-- \
"flutter pub get"
description: |
Install Flutter dependencies
pub_upgrade:
run: |
melos exec \
-c 8 \
--fail-fast \
-- \
"flutter pub upgrade"
description: |
Upgrade Flutter dependencies
build:
run: |
melos exec \
-c 8 \
--fail-fast \
-- \
"if grep -q build_runner "pubspec.yaml"; then
flutter pub run build_runner build --delete-conflicting-outputs && exit
fi"
description: |
Execute "build_runner build" to every Flutter project and packages under the monorepo.
test:
run: |
melos exec \
-c 8 \
--fail-fast \
--ignore "*stacked_localisation*" \
--ignore "*stacked_tools/playground" \
-- \
"if grep -q flutter "pubspec.yaml"; then
flutter test
elif [ -d "test" ]; then
dart test
fi"
description: |
Execute test on every project.
# Additional cleanup lifecycle script, executed when `melos clean` is run.
postclean: >
melos exec -c 6 -- "flutter clean"