-
Notifications
You must be signed in to change notification settings - Fork 18
/
melos.yaml
99 lines (85 loc) · 2.62 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
97
98
99
name: powersync_dart
repository: https://github.com/powersync-ja/powersync.dart
packages:
- packages/*
- demos/*
- demos/*/*
ide:
intellij: false
command:
version:
changelog: false
packageFilters:
noPrivate: true
hooks:
# Automatically update libraryVersion:
preCommit: |
dart run tool/update_version.dart
git add packages/powersync_core/lib/src/version.dart
publish:
hooks:
pre: dart ./scripts/download_core_binary_demos.dart # Download latest core binaries when publishing
packageFilters:
noPrivate: true
scripts:
prepare:
description: Download and prepare assets for demos
run: |
melos bootstrap && melos prepare:assets && dart ./scripts/compile_webworker.dart && dart ./scripts/init_powersync_core_binary.dart && dart ./scripts/download_core_binary_demos.dart && melos prepare:demos
prepare:demos:
description: Download SQLite3 wasm for demos
run: dart run powersync:setup_web --no-worker
exec:
concurrency: 1
packageFilters:
private: true
dirExists: web
prepare:assets:
description: Download Sqlite3 WASM for tests
run: dart ./bin/setup_web.dart --no-worker --output-dir ../powersync_core/assets
exec:
concurrency: 1
packageFilters:
scope: powersync
analyze:demos:
description: Analyze Dart code in demos.
run: dart analyze demos --fatal-infos
analyze:packages:
description: Analyze Dart code in packages.
run: dart analyze packages --fatal-infos
analyze:packages:pana:
description: Analyze Dart packages with Pana
exec: flutter pub global run pana --no-warning --exit-code-threshold 10
packageFilters:
noPrivate: true
format:
description: Format Dart code.
run: dart format .
format:check:demos:
description: Check formatting of Dart code in demos.
run: dart format --output none --set-exit-if-changed demos
format:check:packages:
description: Check formatting of Dart code in packages.
run: dart format --output none --set-exit-if-changed packages
test:
description: Run tests in a specific package.
run: flutter test
exec:
concurrency: 1
packageFilters:
dirExists:
- test
# This tells Melos tests to ignore env variables passed to tests from `melos run test`
# as they could change the behaviour of how tests filter packages.
env:
MELOS_TEST: true
test:web:
description: Run web tests in a specific package.
run: dart test -p chrome --concurrency=1
exec:
concurrency: 1
packageFilters:
dirExists:
- test
env:
MELOS_TEST: true