forked from schultek/jaspr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
69 lines (66 loc) · 2.14 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
name: jaspr_workspace
repository: https://github.com/schultek/jaspr
command:
bootstrap:
hooks:
post: |
dart pub global activate packages/jaspr_cli --source=path
packages:
- packages/*
- apps/*
- examples/*
- experiments/*
- thirdparty/*
scripts:
format:
run: |
melos exec --ignore=jaspr_cli -- "dart format . --line-length=120 --set-exit-if-changed"
melos exec --scope=jaspr_cli -- "dart format lib --line-length=120 --set-exit-if-changed"
analyze: melos exec -- "dart analyze . --fatal-infos"
test:
run: dart test
exec:
concurrency: 1
packageFilters:
scope: [ jaspr, jaspr_riverpod, jaspr_router ]
coverage:
run: |
dart test --coverage=coverage &&
dart pub global run coverage:format_coverage --check-ignore --report-on=lib --lcov -o "$MELOS_ROOT_PATH/coverage/\$MELOS_PACKAGE_NAME_lcov.info" -i ./coverage
exec:
concurrency: 1
packageFilters:
scope: [jaspr, jaspr_riverpod, jaspr_router]
coverage:cli:
run: |
cd packages/jaspr_cli &&
dart test --coverage=coverage --tags="$VARIANT" &&
dart pub global run coverage:format_coverage --check-ignore --report-on=lib --lcov -o "../../coverage/jaspr_cli_$(echo $VARIANT)_lcov.info" -i ./coverage
coverage:all:
run: |
melos run coverage --no-select
genhtml --ignore-errors unmapped -p $MELOS_ROOT_PATH/packages -o $MELOS_ROOT_PATH/coverage/report $MELOS_ROOT_PATH/coverage/*_lcov.info
open $MELOS_ROOT_PATH/coverage/report/index.html
generate:build:
packageFilters:
dependsOn: build_runner
run: |
melos exec --depends-on=build_runner -- "dart run build_runner build --delete-conflicting-outputs"
generate:html:
run: |
cd packages/jaspr
dart run tool/generate_html.dart
generate:scaffold:
run: |
cd packages/jaspr_cli
dart run tool/generate_scaffold.dart
generate:versions:
run: |
cd packages/jaspr_cli
dart run tool/generate_versions.dart
activate:cli:
run: |
dart pub global activate packages/jaspr_cli --source=path
deploy:jasprpad:
run: |
dart run apps/jaspr_pad/tool/deploy.dart