-
Notifications
You must be signed in to change notification settings - Fork 1
/
melos.yaml
107 lines (92 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
100
101
102
103
104
105
106
107
# yaml-language-server: $schema=melos.yaml.schema.json
name: collaction_ui
sdkPath: .fvm/flutter_sdk # Comment out if not using fvm or replace with your custom flutter sdk
repository: https://github.com/CollActionteam/collaction_ui
packages:
- packages/*
command:
bootstrap:
runPubGetInParallel: false
usePubspecOverrides: true
scripts:
analyze:
exec: dart analyze .
concurrency: 1
fail-fast: true
order-dependents: true
description: |
Run `flutter analyze` in all packages.
format:
exec: dart format --set-exit-if-changed .
concurrency: 1
fail-fast: true
description: |
Run `dart format` in all packages.
get:
exec: flutter pub get
concurrency: 1
fail-fast: true
order-dependents: true
description: |
Run `flutter pub get` in all packages.
add:
exec: flutter pub add $1
description: |
Run `flutter pub add` in package.
packageFilters:
flutter: true
remove:
exec: flutter pub remove $1
description: |
Run `flutter pub add` in package.
packageFilters:
flutter: true
add:dev:
exec: flutter pub add $1 --dev
description: |
Run `flutter pub add --dev` in package.
packageFilters:
flutter: true
test:
exec: flutter test --coverage -r expanded --no-pub --test-randomize-ordering-seed random
concurrency: 1
fail-fast: true
order-dependents: true
packageFilters:
dirExists: test
description: |
Run unit and widget tests in all packages.
build:
exec: flutter pub run build_runner build --delete-conflicting-outputs
concurrency: 1
fail-fast: true
order-dependents: true
packageFilters:
dependsOn: build_runner
description: |
Run `build_runner` build command in all packages that has a dependency on `build_runner`.
get:widgetbook:
exec: flutter pub get
fail-fast: true
packageFilters:
scope: "collaction_book"
description: |
Run flutter pub get in collaction_book
build:widgetbook:
exec: |
flutter pub run build_runner build --delete-conflicting-outputs
flutter build web -t lib/main.widgetbook.dart
fail-fast: true
packageFilters:
dependsOn: build_runner
scope: "collaction_book"
description: |
Run `build_runner` build command and flutter build web in collaction_book
publish:widgetbook:
exec: widgetbook publish --api-key $1
concurrency: 1
fail-fast: true
packageFilters:
scope: "collaction_book"
description: |
Publish collaction_book to Widgetbook Cloud