forked from google/inject.dart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
melos.yaml
60 lines (53 loc) · 1.82 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
name: inject_dart
packages:
- packages/**
- examples/**
scripts:
analyze:
exec: dart analyze .
fix:
exec: dart fix --apply
format:
exec: dart format -l 120 .
pubupgrade:
run: melos run pubupgrade:dart && melos run pubupgrade:flutter
pubupgrade:dart:
run: melos exec -c 1 --fail-fast -- "dart pub upgrade"
packageFilters:
flutter: false
pubupgrade:flutter:
run: melos exec -c 1 --fail-fast -- "flutter pub upgrade"
packageFilters:
flutter: true
build:
run: melos run build:dart && melos run build:flutter
build:dart:
run: melos exec -c 1 --fail-fast -- "dart run build_runner clean && dart run build_runner build --delete-conflicting-outputs"
packageFilters:
dependsOn: build_runner
flutter: false
build:flutter:
run: melos exec -c 1 --fail-fast -- "flutter pub run build_runner clean && flutter pub run build_runner build --delete-conflicting-outputs"
packageFilters:
dependsOn: build_runner
flutter: true
test:
run: melos run test:plain --no-select && melos run test:build-runner-dart --no-select && melos run test:build-runner-flutter --no-select
test:plain:
run: melos exec -c 1 --fail-fast -- "dart test"
packageFilters:
noDependsOn: build_runner
dirExists: test
flutter: false
test:build-runner-dart:
run: melos exec -c 1 --fail-fast -- "dart run build_runner clean && dart run build_runner test --delete-conflicting-outputs"
packageFilters:
dependsOn: build_runner
dirExists: test
flutter: false
test:build-runner-flutter:
run: melos exec -c 1 --fail-fast -- "flutter pub run build_runner clean && flutter pub run build_runner build --delete-conflicting-outputs && flutter test"
packageFilters:
dependsOn: build_runner
dirExists: test
flutter: true