-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmelos.yaml
More file actions
118 lines (103 loc) · 3.68 KB
/
Copy pathmelos.yaml
File metadata and controls
118 lines (103 loc) · 3.68 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
name: quantus_workspace
packages:
- mobile-app
- miner-app
- cold-wallet-app
- quantus_sdk
ide:
intellij:
enabled: false
command:
bootstrap:
# Parallel pub get races on checking out shared git dependencies
# (human_checksum) into the cold pub cache in CI: dart-lang/pub#3404.
runPubGetInParallel: false
# Only path-based overrides go here. Melos 6.x propagates these to each
# package's pubspec_overrides.yaml during bootstrap. Hosted-package version
# pins must live in each package's own pubspec.yaml (melos doesn't propagate
# them for hosted packages).
dependency_overrides:
quantus_sdk:
path: ./quantus_sdk
# Dependency placement convention:
#
# melos.yaml (this file)
# - Only path-based overrides for workspace packages (quantus_sdk).
#
# <package>/pubspec.yaml `dependencies`
# - Lists ONLY packages this package directly imports.
# - Every entry has an explicit ^X.Y.Z pin.
# - For deps shared across packages, keep versions aligned manually.
#
# <package>/pubspec.yaml `dev_dependencies`
# - Build/codegen/CLI tools (build_runner, polkadart_cli,
# flutter_native_splash, flutter_launcher_icons).
# - Lint/test tools (flutter_lints, mockito, custom_lint).
#
# Canonical shared versions (keep aligned across packages that declare them):
# polkadart ^0.7.3 # DO NOT UPDATE - newer versions are
# # incompatible with our ML-DSA signature
# # override, work completely differently,
# # and add no benefits.
# bip39_mnemonic ^4.0.1
# convert ^3.1.2
# http ^1.6.0
# shared_preferences ^2.5.5
# decimal ^3.2.4
# path ^1.9.1
# flutter_svg ^2.3.0
# flash ^3.1.1
# collection ^1.19.1
# telemetrydecksdk ^4.0.0
# flutter_lints ^6.0.0
scripts:
# Analyze all packages (matches CI: flutter analyze with fatal infos)
analyze:
description: Analyze all packages in the workspace (matches CI)
run: melos exec --concurrency=1 -- "flutter analyze . --fatal-infos"
# Format all packages
format:
description: Format all packages in the workspace
run: melos exec -- dart format lib test --line-length=120
# Auto-apply lint fixes, then format
fix:
description: Auto-apply lint fixes (dart fix), then format
run: |
melos exec --concurrency=1 -- "dart fix --apply"
melos exec -- "dart format lib test --line-length=120"
# Test all packages
test:
description: Run tests in all packages
run: melos exec --fail-fast -- dart test
# Get dependencies for all packages
get:
description: Get dependencies for all packages
run: melos exec -- flutter pub get
# Clean all packages
clean:
description: Clean all packages
run: melos exec -- flutter clean
# Generate pubspec_overrides.yaml files
bootstrap:
description: Bootstrap workspace with dependency overrides
run: melos bootstrap
# Generate polkadart bindings for quantus_sdk
generate:
description: Generate polkadart bindings
run: cd quantus_sdk && dart run polkadart_cli:generate -v
# Full setup - bootstrap, get deps, generate, and analyze
setup:
description: Full workspace setup
run: |
melos bootstrap
melos get
melos generate
melos analyze
# Update all packages to latest versions
upgrade:
description: Upgrade all packages to latest versions
run: melos exec -- dart pub upgrade --major-versions
# Validate all pubspec.yaml files are in sync
validate:
description: Validate all pubspec files are properly configured
run: melos list --json