-
Notifications
You must be signed in to change notification settings - Fork 10
/
melos.yaml
53 lines (43 loc) · 1.53 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
name: sqlite_async_monorepo
packages:
- packages/**
command:
version:
changelog: false
packageFilters:
noPrivate: true
scripts:
prepare: melos bootstrap && melos prepare:compile:webworker && melos prepare:sqlite:wasm
prepare:compile:webworker:
description: Compile Javascript web worker distributable
run: dart compile js -o assets/db_worker.js -O0 packages/sqlite_async/lib/src/web/worker/worker.dart
prepare:sqlite:wasm:
description: Download SQLite3 WASM binary
run: dart run ./scripts/sqlite3_wasm_download.dart
format:
description: Format Dart code.
run: dart format .
format:check:packages:
description: Check formatting of Dart code in packages.
run: dart format --output none --set-exit-if-changed packages
analyze:packages:
description: Analyze Dart code in packages.
run: dart analyze packages --fatal-infos
# TODO: Temporarily setting the exit-code-threshold to 20 until drift_sqlite_async dependencies are updated.
analyze:packages:pana:
description: Analyze Dart packages with Pana
exec: dart pub global run pana --no-warning --exit-code-threshold 20
packageFilters:
noPrivate: true
test:
description: Run tests in a specific package.
run: dart test -p chrome,vm
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