-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathmelos.yaml
More file actions
124 lines (111 loc) · 3.03 KB
/
melos.yaml
File metadata and controls
124 lines (111 loc) · 3.03 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: gql
packages:
- "gql"
- "codegen/*"
- "gql_pedantic"
- "links/*"
- "examples/*"
ignore:
- "examples/gql_example_flutter"
categories:
packages:
- "gql"
- "gql_pedantic"
- "codegen/gql_build"
- "codegen/gql_code_builder"
- "codegen/gql_code_builder_serializers"
- "codegen/gql_tristate_value"
- "links/gql_exec"
- "links/gql_link"
- "links/gql_dedupe_link"
- "links/gql_dio_link"
- "links/gql_error_link"
- "links/gql_http_link"
- "links/gql_websocket_link"
- "links/gql_transform_link"
builders:
- "codegen/end_to_end_test"
- "codegen/end_to_end_test_tristate"
examples:
- "examples/gql_example_cli"
- "examples/gql_example_cli_github"
- "examples/gql_example_build"
- "examples/gql_example_http_auth_link"
- "examples/gql_example_dio_link"
scripts:
test:
run: dart test
description: Run tests for the entire monorepo
exec:
concurrency: 1
packageFilters:
dirExists: test
ignore: "*example*"
publish:
description: Publish all packages to pub.dev
run: melos publish --no-private
packageFilters:
ignore:
- "*example*"
- "end_to_end_test"
- "end_to_end_test_tristate"
clean:
description: Clean all packages
run: melos clean
build:
run: melos exec -c 1 -- "dart run build_runner build --delete-conflicting-outputs"
description: Build all packages with build_runner
packageFilters:
dependsOn: build_runner
bump-alpha:
description: Bump all packages to next alpha version
run: |
melos version --prerelease \
--preid=alpha \
--no-private \
--no-git-tag-version \
--yes
# Major version bump for all non-private packages
bump-major:
description: Bump all packages to next major version
run: |
melos version \
--no-private \
--yes \
--no-git-tag-version \
$(melos list --no-private --json | jq -r '.[] | "--manual-version=\(.name):major"')
# Minor version bump for all non-private packages
bump-minor:
description: Bump all packages to next minor version
run: |
melos version \
--no-private \
--yes \
--no-git-tag-version \
$(melos list --no-private --json | jq -r '.[] | "--manual-version=\(.name):minor"')
# Patch version bump for all non-private packages
bump-patch:
description: Bump all packages to next patch version
run: |
melos version \
--no-private \
--yes \
--no-git-tag-version \
$(melos list --no-private --json | jq -r '.[] | "--manual-version=\(.name):patch"')
# Graduate from prerelease to stable
graduate:
description: Graduate prerelease versions to stable
run: |
melos version \
--graduate \
--no-private \
--yes
command:
bootstrap:
usePubspecOverrides: true
runPubGetInParallel: false
version:
# Makes version command update all dependencies
updateDependencies: true
linkToCommits: false
sdkPath: auto