-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
96 lines (79 loc) · 2.45 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
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
name: tagflow
packages:
- packages/**
- examples/**
repository: https://github.com/devaryakjha/tagflow
command:
version:
linkToCommits: true
workspaceChangelog: true
releaseUrl: true
scripts:
analyze:
# Run analysis on all packages
run: melos exec -- "dart analyze . --fatal-infos"
description: Run analyzer in all packages
test:
# Run tests on all packages that have tests
run: melos exec -c 1 --fail-fast -- "flutter test --coverage"
description: Run tests for all packages
packageFilters:
dirExists: test
format:
# Format all .dart files in the project
run: melos exec -- "dart format ."
description: Format all .dart files
format:check:
# Check if all files are formatted
run: melos exec -- "dart format --set-exit-if-changed ."
description: Check if all files are formatted
lint:all:
# Run all static analysis checks
run: |
melos run analyze && \
melos run format:check
description: Run all static analysis checks
build:clean:
# Clean all build outputs
run: melos exec -- "flutter clean"
description: Clean all build outputs
pub:get:
# Get packages in all packages
run: melos exec -- "flutter pub get"
description: Get packages in all packages
validate:
# Verify that packages pass all checks
run: |
melos run lint:all && \
melos run test
description: Run all validations (analyze, format, test)
version:dev:
# Version packages with dev tag
run: melos version --prerelease --preid=dev --yes
description: Version packages with dev tag
version:stable:
# Version packages for stable release
run: melos version --graduate --yes
description: Version packages for stable release
publish:
# Publish all packages
run: melos publish --yes --no-dry-run
description: Publish all packages to pub.dev
bootstrap:clean:
# Clean and bootstrap workspace
run: |
melos clean && \
melos bootstrap
description: Clean and bootstrap workspace
coverage:
run: melos exec -c 1 --fail-fast -- "flutter test --coverage"
description: Run tests with coverage and generate coverage report
packageFilters:
dirExists: test
combine-coverage:
run: |
mkdir -p coverage
lcov --add-tracefile packages/tagflow/coverage/lcov.info -o coverage/lcov.info
description: Combine coverage reports from all packages
packageFilters:
dirExists: coverage