forked from netglade/auto_mappr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
62 lines (48 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
54
55
56
57
58
59
60
61
62
name: auto_mappr_workspace
packages:
- packages/*
- packages/*/example
- examples/*
scripts:
# ANALYZING
lint:all:
run: melos run lint:dart && melos run lint:dcm
description: Run all static analysis checks.
lint:dart:
run: melos exec -c 10 -- dart analyze --fatal-infos
description: Run Dart static analysis checks.
lint:dcm:
run: melos exec -c 10 -- dcm analyze . --fatal-style --fatal-performance --fatal-warnings
description: Run DCM static analysis checks.
# GENERATION
gen:build-all:
run: melos run gen:example:build && melos run gen:test:build
description: Generate everything.
gen:example:
run: melos exec -- dart run build_runner watch --delete-conflicting-outputs
packageFilters:
scope: "*example*"
description: Generate example mappers.
gen:example:build:
run: melos exec -- dart run build_runner build --delete-conflicting-outputs --verbose
packageFilters:
scope: "*example*"
description: Generate example mappers once.
gen:test:
run: melos exec -- dart run build_runner watch --delete-conflicting-outputs --verbose
packageFilters:
dirExists:
- test
description: Generate test mappers.
gen:test:build:
run: melos exec -- dart run build_runner build --delete-conflicting-outputs --verbose
packageFilters:
dirExists:
- test
description: Generate test mappers once.
# TESTING
test:
run: melos exec -- dart test
packageFilters:
dirExists: test
description: Run all Dart tests.